Client and server tests: Prefix keys for compatibility.

The NetworkTable interface prefixes with /, so this makes simple
interoperability testing easier.
This commit is contained in:
Peter Johnson
2015-08-28 12:23:16 -07:00
parent b488cdd6ff
commit b28807d791
2 changed files with 12 additions and 12 deletions

View File

@@ -14,11 +14,11 @@ int main() {
0);
nt::StartServer("persistent.ini", "", 10000);
std::this_thread::sleep_for(std::chrono::seconds(1));
nt::SetEntryValue("foo", nt::Value::MakeDouble(0.5));
nt::SetEntryFlags("foo", NT_PERSISTENT);
nt::SetEntryValue("foo2", nt::Value::MakeDouble(0.5));
nt::SetEntryValue("foo2", nt::Value::MakeDouble(0.7));
nt::SetEntryValue("foo2", nt::Value::MakeDouble(0.6));
nt::SetEntryValue("foo2", nt::Value::MakeDouble(0.5));
nt::SetEntryValue("/foo", nt::Value::MakeDouble(0.5));
nt::SetEntryFlags("/foo", NT_PERSISTENT);
nt::SetEntryValue("/foo2", nt::Value::MakeDouble(0.5));
nt::SetEntryValue("/foo2", nt::Value::MakeDouble(0.7));
nt::SetEntryValue("/foo2", nt::Value::MakeDouble(0.6));
nt::SetEntryValue("/foo2", nt::Value::MakeDouble(0.5));
std::this_thread::sleep_for(std::chrono::seconds(10));
}