projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tests for some device & address variables
[tinc]
/
test
/
integration
/
address_cache.py
diff --git
a/test/integration/address_cache.py
b/test/integration/address_cache.py
index
7af5fee
..
e0b94e3
100755
(executable)
--- a/
test/integration/address_cache.py
+++ b/
test/integration/address_cache.py
@@
-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