aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'peer.cpp')
-rw-r--r--peer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/peer.cpp b/peer.cpp
index 48431504..904de0e9 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -57,6 +57,15 @@ BOOST_AUTO_TEST_CASE(host)
g_logVerbosity = oldLogVerbosity;
}
+BOOST_AUTO_TEST_CASE(networkConfig)
+{
+ Host save("Test", NetworkPreferences(false));
+ bytes store(save.saveNetwork());
+
+ Host restore("Test", NetworkPreferences(false), bytesConstRef(&store));
+ BOOST_REQUIRE(save.id() == restore.id());
+}
+
BOOST_AUTO_TEST_CASE(save_nodes)
{
std::list<Host*> hosts;