buckets / relay

Open source Buckets relay server
MIT License
6 stars 0 forks source link

Fix long hang that sometimes happens in tests #5

Closed iffy closed 1 year ago

iffy commented 1 year ago

https://github.com/buckets/relay/actions/runs/4030529472/jobs/6929254186

rm: cannot remove '_tests': No such file or directory
+ mkdir -p _tests
+ cd _tests
Adding a user ...
+ dotest
+ echo Adding a user ...
+ brelay adduser me@me.com --password-stdin
+ printf foobar
INFO (dbpatch) applying patch: initial
Password? added user me@me.com
+ echo Generating keys ...
Generating keys ...
+ mkdir -p client1
+ cd client1
+ bclient genkeys
Wrote relay.key.public
Wrote relay.key.secret
Public key:
4DBRSpN2tQ3n1LkRLQkJMUOPebF+DyRxfiTVRAtOc3g=
+ mkdir -p client2
+ cd client2
+ bclient genkeys
Wrote relay.key.public
Wrote relay.key.secret
Public key:
p5m9oY7qKn0lT/1fDadYV5Ziad1UHH4Cvrq+u5oc41w=
+ echo hello, world
+ echo Starting the server ...
+ CHILDPID=13891
+ trap kill 13891 exit
+ echo Starting the clients ...
+ printf hello, world
+ CLIENT1PID=13892
Starting the server ...
Starting the clients ...
+ cd client1
+ brelay server+  --port 8080
cd client2
+ cat ../client2/relay.key.public
+ bclient receive -u me@me.com -p foobar http://127.0.0.1:8080/v1/relay p5m9oY7qKn0lT/1fDadYV5Ziad1UHH4Cvrq+u5oc41w=
+ cat ../client1/relay.key.public
DEBUG Receiving from p5m9oY7qKn0lT/1fDadYV5Ziad1UHH4Cvrq+u5oc41w= via http://127.0.0.1:8080/v1/relay ...
asyncfutures2.nim(505)   internalCheckComplete
asyncfutures2.nim(505)   internalCheckComplete
asyncfutures2.nim(505)   internalCheckComplete
???                      connect
asyncfutures2.nim(505)   internalCheckComplete
asyncfutures2.nim(505)   internalCheckComplete
Error: unhandled exception: (111) Connection refused [TransportOsError]
+ bclient send -u me@me.com -p foobar http://127.0.0.1:8080/v1/relay 4DBRSpN2tQ3n1LkRLQkJMUOPebF+DyRxfiTVRAtOc3g=
DEBUG (dbpatch) existing patches: @["initial"]
INFO Starting Buckets Relay on 127.0.0.1:8080 ...
+ cat testfile
DEBUG Sending 12 bytes to 4DBRSpN2tQ3n1LkRLQkJMUOPebF+DyRxfiTVRAtOc3g= via http://127.0.0.1:8080/v1/relay ...
DEBUG [RConn ----------]<  (Who challenge=CasaKqQ...)
DEBUG [RConn ----------] > (Iam p5m9oY7... sig=sboUsZe...)
DEBUG [RConn p5m9oY7...]<  (Authenticated)
DEBUG [RConn p5m9oY7...] > (Connect 4DBRSpN...)
Error: The operation was canceled.