Allow override of the session number (required by NLSR)
Change-Id: Ifb08868d6a640518aa826d3bec4546dc4e001dfa
diff --git a/tests/unit-tests/test-socket.cpp b/tests/unit-tests/test-socket.cpp
index 3fd0d26..4c4984b 100644
--- a/tests/unit-tests/test-socket.cpp
+++ b/tests/unit-tests/test-socket.cpp
@@ -1,6 +1,6 @@
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
/*
- * Copyright (c) 2012-2017 University of California, Los Angeles
+ * Copyright (c) 2012-2018 University of California, Los Angeles
*
* This file is part of ChronoSync, synchronization library for distributed realtime
* applications for NDN.
@@ -50,7 +50,11 @@
userPrefix,
face,
isNum ? bind(&SocketTestApp::fetchNumbers, this, _1) :
- bind(&SocketTestApp::fetchAll, this, _1))
+ bind(&SocketTestApp::fetchAll, this, _1),
+ Logic::DEFAULT_NAME,
+ Logic::DEFAULT_VALIDATOR,
+ Logic::DEFAULT_SYNC_INTEREST_LIFETIME,
+ name::Component::fromEscapedString("override"))
{
}
@@ -325,6 +329,9 @@
BOOST_CHECK_EQUAL(app[0]->toString(), app[1]->toString());
BOOST_CHECK_EQUAL(app[0]->toString(), app[2]->toString());
+
+ BOOST_CHECK_EQUAL(sessionName[0], Name("/user0/override"));
+ BOOST_CHECK_EQUAL(sessionName[1], Name("/user1/override"));
}
BOOST_AUTO_TEST_CASE(BasicNumber)