upleb.uk

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

summaryrefslogtreecommitdiff
path: root/test_utils
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-08-28 14:20:34 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-08-28 16:42:53 +0100
commita5216602749bff55c2773acce098c91942cd3920 (patch)
treef1961c73d0586cab4de8fd54aafd9ba8171f3adb /test_utils
parent2045aa5d928306f2a03cc924eac9c453c399b9b8 (diff)
chore: bump rust-nostr to v0.34.0
bump all rust-nostr packages I'm not sure I'm completely happy with allowing mutable_key_type but it is just run inside tests it appears that Event didn't have the Copy trait in v0.33.0 so I'm not sure why this warning suddenly appeared the timeout of client.get_events_of needed to be doubled which could indicate that an ineffiency has been introduced in v0.34.0 the primary motivation for upgrading now was to get this fix: nostr:nevent1qqsffl2ld678pjj77rh9k2g4edljmxdu6ew4lvgnglxv7jhu3ru8vvcpp4mhxue69uhkummn9ekx7mqzyzsq3hh327t0h2dq6matqn5064cgj2zanl2stkj6s0lg4t2h5dty6rm2ucm as I suspect it is also effecting other repositories eg nostr-profile-manager
Diffstat (limited to 'test_utils')
-rw-r--r--test_utils/Cargo.toml8
-rw-r--r--test_utils/src/lib.rs6
2 files changed, 7 insertions, 7 deletions
diff --git a/test_utils/Cargo.toml b/test_utils/Cargo.toml
index c92fa56..ff07b45 100644
--- a/test_utils/Cargo.toml
+++ b/test_utils/Cargo.toml
@@ -10,10 +10,10 @@ dialoguer = "0.10.4"
10directories = "5.0.1" 10directories = "5.0.1"
11futures = "0.3.28" 11futures = "0.3.28"
12git2 = "0.18.1" 12git2 = "0.18.1"
13nostr = "0.33.0" 13nostr = "0.34.0"
14nostr-database = "0.33.1" 14nostr-database = "0.34.0"
15nostr-sdk = "0.33.0" 15nostr-sdk = "0.34.0"
16nostr-sqlite = "0.33.0" 16nostr-sqlite = "0.34.0"
17once_cell = "1.18.0" 17once_cell = "1.18.0"
18rand = "0.8" 18rand = "0.8"
19rexpect = { git = "https://github.com/rust-cli/rexpect.git", rev = "9eb61dd" } 19rexpect = { git = "https://github.com/rust-cli/rexpect.git", rev = "9eb61dd" }
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs
index 56e9b17..12cadeb 100644
--- a/test_utils/src/lib.rs
+++ b/test_utils/src/lib.rs
@@ -1091,9 +1091,9 @@ pub fn get_proposal_branch_name_from_events(
1091 branch_name_in_event: &str, 1091 branch_name_in_event: &str,
1092) -> Result<String> { 1092) -> Result<String> {
1093 for event in events { 1093 for event in events {
1094 if event.iter_tags().any(|t| { 1094 if event.tags().iter().any(|t| {
1095 !t.as_vec()[1].eq("revision-root") 1095 !t.as_vec()[1].eq("revision-root")
1096 && event.iter_tags().any(|t| { 1096 && event.tags().iter().any(|t| {
1097 t.as_vec()[0].eq("branch-name") && t.as_vec()[1].eq(branch_name_in_event) 1097 t.as_vec()[0].eq("branch-name") && t.as_vec()[1].eq(branch_name_in_event)
1098 }) 1098 })
1099 }) { 1099 }) {
@@ -1370,7 +1370,7 @@ fn get_first_proposal_event_id() -> Result<nostr::EventId> {
1370 vec!["root"], 1370 vec!["root"],
1371 ), 1371 ),
1372 ], 1372 ],
1373 Some(Duration::from_millis(500)), 1373 nostr_sdk::EventSource::relays(Some(Duration::from_millis(1000))),
1374 ))?; 1374 ))?;
1375 Handle::current().block_on(client.disconnect())?; 1375 Handle::current().block_on(client.disconnect())?;
1376 1376