This commit is contained in:
pinpox
2025-07-22 16:57:24 +02:00
parent 85e968c4f7
commit 77bb690b87
2 changed files with 4 additions and 8 deletions

View File

@@ -69,6 +69,7 @@
);
};
};
systemd.services.syncthing-auto-accept =
let
baseAddress = "127.0.0.1:8384";

View File

@@ -57,6 +57,9 @@
testScript = ''
start_all()
# import time
# time.sleep(500000)
introducer.wait_for_unit("syncthing.service")
peer1.wait_for_unit("syncthing.service")
peer2.wait_for_unit("syncthing.service")
@@ -71,17 +74,10 @@
peer1.succeed("curl -s http://127.0.0.1:8384")
peer2.succeed("curl -s http://127.0.0.1:8384")
# Check that folders are created correctly
peer1.execute("ls -la /var/lib/syncthing")
peer2.execute("ls -la /var/lib/syncthing")
# import time
# time.sleep(500000)
# peer1.wait_until_succeeds("timeout 5 ls /var/lib/syncthing/Shared")
# peer2.wait_until_succeeds("timeout 5 ls /var/lib/syncthing/Shared")
peer1.wait_for_file("/var/lib/syncthing/Shared")
peer2.wait_for_file("/var/lib/syncthing/Shared")
@@ -95,6 +91,5 @@
out = peer2.succeed("cat /var/lib/syncthing/Shared/hello")
assert "hello" in out
'';
}