diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-05-29 22:30:40 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-05-31 17:09:53 +0200 |
commit | 847b60ae7eb2d98576ed7e8775a690041fed8081 (patch) | |
tree | c81f208c53e0151d8be2869f32629cf36f09e6e3 /test | |
parent | d9800045d572358526bf18688f06a4cfa4f99772 (diff) |
Use weak refs in discovery service
Diffstat (limited to 'test')
-rw-r--r-- | test/discovery.test | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/test/discovery.test b/test/discovery.test index f2dddb7..69d73df 100644 --- a/test/discovery.test +++ b/test/discovery.test @@ -1,7 +1,7 @@ module discovery test ManualDiscovery: - let services = "discovery,test" + let services = "discovery" let refpat = /blake2#[0-9a-f]*/ subnet sd @@ -24,27 +24,6 @@ test ManualDiscovery: expect /create-identity-done ref $refpat.*/ from p2 expect /create-identity-done ref $refpat.*/ from pd - # TODO: avoid the need to send identity objects with weak refs - for p in [ p1, p2 ]: - with p: - send "start-server services $services" - send "peer-add ${p2.node.ip}" to p1 - expect from p1: - /peer 1 addr ${p2.node.ip} 29665/ - /peer 1 id Device2 Owner2/ - expect from p2: - /peer 1 addr ${p1.node.ip} 29665/ - /peer 1 id Device1 Owner1/ - for r in [ p1base, p1obase ]: - with p1: - send "test-message-send 1 $r" - expect /test-message-send done/ - with p2: - expect /test-message-received rec [0-9]+ $r/ - for p in [ p1, p2 ]: - send "stop-server" to p - expect /stop-server-done/ from p - # Test discovery using owner and device identities: for id in [ p1obase, p1base ]: for p in [ pd, p1, p2 ]: |