Skip to content

Commit

Permalink
Migrate test from UDP to TCP (qt_test/qt.cpp)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Silva committed Aug 26, 2022
1 parent 45017fb commit 9da2373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nano/qt_test/qt.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <nano/qt/qt.hpp>
#include <nano/test_common/network.hpp>
#include <nano/test_common/system.hpp>
#include <nano/test_common/testutil.hpp>

Expand Down Expand Up @@ -44,7 +45,8 @@ TEST (wallet, DISABLED_status)
return wallet->active_status.active.find (status_ty) != wallet->active_status.active.end ();
};
ASSERT_EQ ("Status: Disconnected, Blocks: 1", wallet->status->text ().toStdString ());
system.nodes[0]->network.udp_channels.insert (nano::endpoint (boost::asio::ip::address_v6::loopback (), 10000), 0);
auto outer_node = nano::test::add_outer_node (system, nano::test::get_available_port ());
nano::test::establish_tcp (system, *system.nodes[0], outer_node->network.endpoint ());
// Because of the wallet "vulnerable" message, this won't be the message displayed.
// However, it will still be part of the status set.
ASSERT_FALSE (wallet_has (nano_qt::status_types::synchronizing));
Expand Down

0 comments on commit 9da2373

Please sign in to comment.