diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-31 12:02:08 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-31 12:02:08 +0100 |
| commit | 8fe7737a491d6056d6e865bfdecd02e3dda3e8f5 (patch) | |
| tree | ea044a7e3744724c1245a8c20bc5bf5e01ef492f /test_utils | |
| parent | f4d3a622eeff76677316076afcd0cb8954aa2e05 (diff) | |
chore: bump rust-nostr v0.43
with trival breaking changes. nip05 changes will
be done seperately.
Diffstat (limited to 'test_utils')
| -rw-r--r-- | test_utils/Cargo.toml | 8 | ||||
| -rw-r--r-- | test_utils/src/lib.rs | 2 | ||||
| -rw-r--r-- | test_utils/src/relay.rs | 8 |
3 files changed, 11 insertions, 7 deletions
diff --git a/test_utils/Cargo.toml b/test_utils/Cargo.toml index 8602416..236ba80 100644 --- a/test_utils/Cargo.toml +++ b/test_utils/Cargo.toml | |||
| @@ -10,10 +10,10 @@ dialoguer = "0.11.0" | |||
| 10 | directories = "6.0.0" | 10 | directories = "6.0.0" |
| 11 | futures = "0.3.31" | 11 | futures = "0.3.31" |
| 12 | git2 = "0.20.2" | 12 | git2 = "0.20.2" |
| 13 | nostr = "0.42.2" | 13 | nostr = "0.43.0" |
| 14 | nostr-database = "0.42.0" | 14 | nostr-database = "0.43.0" |
| 15 | nostr-lmdb = "0.42.0" | 15 | nostr-lmdb = "0.43.0" |
| 16 | nostr-sdk = "0.42.0" | 16 | nostr-sdk = "0.43.0" |
| 17 | once_cell = "1.21.3" | 17 | once_cell = "1.21.3" |
| 18 | rand = "0.9" | 18 | rand = "0.9" |
| 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 7d79cff..3ae004f 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs | |||
| @@ -13,7 +13,7 @@ use futures::{executor::block_on, future::join_all}; | |||
| 13 | use git::GitTestRepo; | 13 | use git::GitTestRepo; |
| 14 | use git2::{Signature, Time}; | 14 | use git2::{Signature, Time}; |
| 15 | use nostr::{self, Kind, Tag, nips::nip65::RelayMetadata}; | 15 | use nostr::{self, Kind, Tag, nips::nip65::RelayMetadata}; |
| 16 | use nostr_database::NostrEventsDatabase; | 16 | use nostr_database::NostrDatabase; |
| 17 | use nostr_lmdb::NostrLMDB; | 17 | use nostr_lmdb::NostrLMDB; |
| 18 | use nostr_sdk::{Client, Event, NostrSigner, TagStandard, serde_json}; | 18 | use nostr_sdk::{Client, Event, NostrSigner, TagStandard, serde_json}; |
| 19 | use once_cell::sync::Lazy; | 19 | use once_cell::sync::Lazy; |
diff --git a/test_utils/src/relay.rs b/test_utils/src/relay.rs index b14f532..8a982a4 100644 --- a/test_utils/src/relay.rs +++ b/test_utils/src/relay.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | use std::collections::HashMap; | 1 | use std::collections::HashMap; |
| 2 | 2 | ||
| 3 | use anyhow::{Result, bail}; | 3 | use anyhow::{Result, bail}; |
| 4 | use nostr::{ClientMessage, JsonUtil, RelayMessage}; | 4 | use nostr::{ClientMessage, JsonUtil, RelayMessage, filter::MatchEventOptions}; |
| 5 | 5 | ||
| 6 | use crate::CliTester; | 6 | use crate::CliTester; |
| 7 | 7 | ||
| @@ -105,7 +105,11 @@ impl<'a> Relay<'a> { | |||
| 105 | &self | 105 | &self |
| 106 | .events | 106 | .events |
| 107 | .iter() | 107 | .iter() |
| 108 | .filter(|e| filters.iter().any(|filter| filter.match_event(e))) | 108 | .filter(|e| { |
| 109 | filters | ||
| 110 | .iter() | ||
| 111 | .any(|filter| filter.match_event(e, MatchEventOptions::default())) | ||
| 112 | }) | ||
| 109 | .filter(|_| true) | 113 | .filter(|_| true) |
| 110 | .cloned() | 114 | .cloned() |
| 111 | .collect(), | 115 | .collect(), |