aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLibravatar Daniel Wigton <daniel@stonecottageweb.com>2024-07-10 16:19:32 -0500
committerLibravatar Daniel Wigton <daniel@stonecottageweb.com>2024-07-10 16:19:32 -0500
commit9cbe27d3e5e15a3790cc9d5d3e9cc5852ce08df4 (patch)
tree23d97b9359ecc919e4404b6c05ca2f469f91f961 /test
parentfa3f0dd7c95897b06a9185317910b2abb474fc28 (diff)
return future from queryRelays
Diffstat (limited to 'test')
-rw-r--r--test/nostr_service_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/nostr_service_test.cpp b/test/nostr_service_test.cpp
index 4e29960..6000423 100644
--- a/test/nostr_service_test.cpp
+++ b/test/nostr_service_test.cpp
@@ -771,7 +771,9 @@ TEST_F(NostrServiceTest, QueryRelays_ReturnsEvents_UpToEOSE)
}));
auto filters = make_shared<nostr::Filters>(getKind0And1TestFilters());
- auto results = nostrService->queryRelays(filters);
+
+ // await the future and get the results
+ auto results = nostrService->queryRelays(filters).get();
// Check results size to ensure there are no duplicates.
ASSERT_EQ(results.size(), testEvents.size());