X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblacklist.c;h=d296745f3a16926b0fca95c46cd70bbe19646749;hb=7a9d30b60af9d5e71f1bfee4dd976d5807402a15;hp=cd54585341148922894b7220a365a45b1b93c838;hpb=b37cd7198f18ec5e98e2010e72b0407c49069ce7;p=meshlink-tiny diff --git a/test/blacklist.c b/test/blacklist.c index cd54585..d296745 100644 --- a/test/blacklist.c +++ b/test/blacklist.c @@ -113,12 +113,6 @@ int main(void) { assert(meshlink_get_node_blacklisted(mesh[1], meshlink_get_node(mesh[1], name[2]))); assert(meshlink_get_node_blacklisted(mesh[2], meshlink_get_node(mesh[2], name[1]))); - // Generate an invitation for a node that is about to be blacklisted - - char *invitation = meshlink_invite(mesh[0], NULL, "xyzzy"); - assert(invitation); - free(invitation); - // Whitelisting and blacklisting by name should work. assert(meshlink_whitelist_by_name(mesh[0], "quux")); @@ -142,20 +136,6 @@ int main(void) { free(nodes); - // Check that blacklisted nodes are not allowed to be invited, and no invitations are left on disk. - - assert(!meshlink_invite(mesh[0], NULL, "xyzzy")); - - DIR *dir = opendir("blacklist_conf.0/current/invitations"); - assert(dir); - struct dirent *ent; - - while((ent = readdir(dir))) { - assert(!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")); - } - - closedir(dir); - // Since these nodes now exist we should be able to forget them. assert(meshlink_forget_node(mesh[0], meshlink_get_node(mesh[0], "quux")));