upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-04-18 07:39:27 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-06-11 12:33:09 +0100
commit7c6a5ab4c5e7a81c7442061029b9230748a6639d (patch)
treeaea6567080857b629c826c7921314a6ce323a6db /tests
parent3b4f0b0eee124133b641d6770704c368712f3dff (diff)
refactor: bump rust-nostr to v0.30 use ncryptsec
bump nostr and nostr-sdk packages and also in test_utils remove custom ncryptsec implementation and use the newly added implementation nip49 version in rust-nostr note a patched v0.30 is used so that log_n is exposed so that user can be warned it might take a few seconds to decrypt. this has now been merged into the library. note that this will no longer decrypt existing ncryptsec values as it is uses a longer string. this should therefore be bundled with the upcoming change to storing nsec and ncryptsec in git config.
Diffstat (limited to 'tests')
-rw-r--r--tests/login.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/login.rs b/tests/login.rs
index 351d099..371a7e7 100644
--- a/tests/login.rs
+++ b/tests/login.rs
@@ -956,7 +956,7 @@ mod with_offline_flag {
956 p.expect(format!("login as {}\r\n", TEST_KEY_1_NPUB).as_str())? 956 p.expect(format!("login as {}\r\n", TEST_KEY_1_NPUB).as_str())?
957 .expect_password(EXPECTED_PASSWORD_PROMPT)? 957 .expect_password(EXPECTED_PASSWORD_PROMPT)?
958 .succeeds_with(TEST_INVALID_PASSWORD)?; 958 .succeeds_with(TEST_INVALID_PASSWORD)?;
959 p.expect_end_with(format!("Error: failed to log in as {}\r\n\r\nCaused by:\r\n 0: failed to decrypt key with provided password\r\n 1: failed to decrypt\r\n", TEST_KEY_1_NPUB).as_str()) 959 p.expect_end_with(format!("Error: failed to log in as {}\r\n\r\nCaused by:\r\n 0: failed to decrypt key with provided password\r\n 1: ChaCha20Poly1305: aead::Error\r\n", TEST_KEY_1_NPUB).as_str())
960 }) 960 })
961 } 961 }
962 } 962 }