X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=test%2Fbasicpp.cpp;h=02d4cb61e4b7d70c286b3a77a085d78a9ffb148e;hb=dcdf80363e5abc8ceb06dd611739ba96d530d2b9;hp=3a0c75ac016fd4db7a5bf25a26c93b55be0e4246;hpb=89d675c474a6717d9daa8b5d9ff2c0f2c03666f9;p=meshlink diff --git a/test/basicpp.cpp b/test/basicpp.cpp index 3a0c75ac..02d4cb61 100644 --- a/test/basicpp.cpp +++ b/test/basicpp.cpp @@ -15,7 +15,7 @@ int main(int argc, char *argv[]) { // Check that our own node exists. - meshlink::node *self = mesh.get_node("foo"); + meshlink::node *self = mesh.get_self(); if(!self) { cerr << "Foo does not know about itself\n"; return 1; @@ -47,14 +47,14 @@ int main(int argc, char *argv[]) { // Check that the name is ignored now, and that we still are "foo". - mesh.open("basic_conf", "bar", "basicpp", DEV_CLASS_BACKBONE); + mesh.open("basicpp_conf", "bar", "basicpp", DEV_CLASS_BACKBONE); if(mesh.get_node("bar")) { cerr << "Foo knows about bar, it shouldn't\n"; return 1; } - self = mesh.get_node("foo"); + self = mesh.get_self(); if(!self) { cerr << "Foo doesn't know about itself the second time\n"; return 1;