diff options
Diffstat (limited to 'test/daemon.py')
| -rw-r--r-- | test/daemon.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/daemon.py b/test/daemon.py index d134732b..e68cc6ae 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -265,8 +265,11 @@ class Replica: is read, whole. A daemon of another replica protocol (an older build's, across an Upgrade) is dialled again in its own.""" name = session.encode() - self.send(0x01, struct.pack('<HQH', wire or self.WIRE, build, len(name)) + name + b'\xff') - self.send(0x06, b'\x00') + # Its first word (not far) in the same write, as a client's join + # sends it (core/replica.zig joinOn): a refused hello's connection + # is closed, and a second write after it would meet that. + hello = struct.pack('<HQH', wire or self.WIRE, build, len(name)) + name + b'\xff' + self.s.sendall(struct.pack('<BI', 0x01, len(hello)) + hello + struct.pack('<BIB', 0x06, 1, 0)) tag, body = self.read() if tag == 0x01: pid, n = struct.unpack_from('<IH', body) |
