]> www.tinc-vpn.org Git - tinc/blobdiff - test/integration/address_cache.py
Add tests for some device & address variables
[tinc] / test / integration / address_cache.py
index 7af5feeb66bd2afb6b017728411270140c275d5c..e0b94e3fb2db180c45fe65abb261e11dc0165528 100755 (executable)
@@ -14,17 +14,8 @@ from testlib.test import Test
 
 def init(ctx: Test) -> T.Tuple[Tinc, Tinc]:
     """Create test node."""
 
 def init(ctx: Test) -> T.Tuple[Tinc, Tinc]:
     """Create test node."""
-    foo, bar = ctx.node(), ctx.node()
-
-    stdin = f"""
-        init {foo}
-        set Port 0
-        set Address localhost
-        set DeviceType dummy
-        set AutoConnect no
-    """
-    foo.cmd(stdin=stdin)
-
+    bar = ctx.node()
+    foo = ctx.node(init="set AutoConnect no")
     return foo, bar
 
 
     return foo, bar