diff options
author | buttercat1791 <mjjurkoic@gmail.com> | 2024-05-07 09:22:21 -0500 |
---|---|---|
committer | buttercat1791 <mjjurkoic@gmail.com> | 2024-05-07 09:22:21 -0500 |
commit | d6faf6c815611450d1b61045b53525d7f25ac5c9 (patch) | |
tree | 7d92570de852f97550f84140bd794fa5d64c567b /test | |
parent | 14ba707c600f13012b3b7f441541f9a6db8ddb8a (diff) |
Remove 'RelayList' type alias
Diffstat (limited to 'test')
-rw-r--r-- | test/nostr_service_test.cpp | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/test/nostr_service_test.cpp b/test/nostr_service_test.cpp index 0f0d439..b3b9b28 100644 --- a/test/nostr_service_test.cpp +++ b/test/nostr_service_test.cpp @@ -10,25 +10,10 @@ #include <client/web_socket_client.hpp> #include <nostr.hpp> +using namespace std; +using namespace ::testing; + using nlohmann::json; -using std::function; -using std::lock_guard; -using std::make_shared; -using std::make_unique; -using std::mutex; -using std::promise; -using std::shared_ptr; -using std::string; -using std::thread; -using std::tuple; -using std::unordered_map; -using std::vector; -using ::testing::_; -using ::testing::Args; -using ::testing::HasSubstr; -using ::testing::Invoke; -using ::testing::Return; -using ::testing::Truly; namespace nostr_test { @@ -56,7 +41,7 @@ public: class NostrServiceTest : public testing::Test { public: - inline static const nostr::RelayList defaultTestRelays = + inline static const vector<string> defaultTestRelays = { "wss://relay.damus.io", "wss://nostr.thesamecat.io" @@ -273,7 +258,7 @@ TEST_F(NostrServiceTest, OpenRelayConnections_OpensConnections_ToDefaultRelays) TEST_F(NostrServiceTest, OpenRelayConnections_OpensConnections_ToProvidedRelays) { - nostr::RelayList testRelays = { "wss://nos.lol" }; + vector<string> testRelays = { "wss://nos.lol" }; mutex connectionStatusMutex; auto connectionStatus = make_shared<unordered_map<string, bool>>(); @@ -312,7 +297,7 @@ TEST_F(NostrServiceTest, OpenRelayConnections_OpensConnections_ToProvidedRelays) TEST_F(NostrServiceTest, OpenRelayConnections_AddsOpenConnections_ToActiveRelays) { - nostr::RelayList testRelays = { "wss://nos.lol" }; + vector<string> testRelays = { "wss://nos.lol" }; mutex connectionStatusMutex; auto connectionStatus = make_shared<unordered_map<string, bool>>(); @@ -401,8 +386,8 @@ TEST_F(NostrServiceTest, CloseRelayConnections_ClosesConnections_ToActiveRelays) TEST_F(NostrServiceTest, CloseRelayConnections_RemovesClosedConnections_FromActiveRelays) { - nostr::RelayList testRelays = { "wss://nos.lol" }; - nostr::RelayList allTestRelays = { defaultTestRelays[0], defaultTestRelays[1], testRelays[0] }; + vector<string> testRelays = { "wss://nos.lol" }; + vector<string> allTestRelays = { defaultTestRelays[0], defaultTestRelays[1], testRelays[0] }; mutex connectionStatusMutex; auto connectionStatus = make_shared<unordered_map<string, bool>>(); |