diff options
Diffstat (limited to 'test_utils')
| -rw-r--r-- | test_utils/Cargo.toml | 8 | ||||
| -rw-r--r-- | test_utils/src/lib.rs | 6 |
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" | |||
| 10 | directories = "5.0.1" | 10 | directories = "5.0.1" |
| 11 | futures = "0.3.28" | 11 | futures = "0.3.28" |
| 12 | git2 = "0.18.1" | 12 | git2 = "0.18.1" |
| 13 | nostr = "0.33.0" | 13 | nostr = "0.34.0" |
| 14 | nostr-database = "0.33.1" | 14 | nostr-database = "0.34.0" |
| 15 | nostr-sdk = "0.33.0" | 15 | nostr-sdk = "0.34.0" |
| 16 | nostr-sqlite = "0.33.0" | 16 | nostr-sqlite = "0.34.0" |
| 17 | once_cell = "1.18.0" | 17 | once_cell = "1.18.0" |
| 18 | rand = "0.8" | 18 | rand = "0.8" |
| 19 | rexpect = { git = "https://github.com/rust-cli/rexpect.git", rev = "9eb61dd" } | 19 | rexpect = { 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 | ||