diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/nostr_service_test.cpp | 4 |
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()); |