]> git.giacomolli.uk - onechat/commit
Make two WhatsApp tests independent of the load
authorAnderson A. Giacomolli <redacted>
Sun, 8 Nov 2026 15:25:24 +0000 (12:25 -0300)
committerAnderson A. Giacomolli <redacted>
Sun, 8 Nov 2026 15:25:24 +0000 (12:25 -0300)
commitf0604a9ebbee5783d5213d6176191535f4ed335b
tree5060c0a6f19b30fc3de4e2802c3d5368b75dda82
parent38a9b0502a1ccefc6ccb3472c4a21805b222caa6
Make two WhatsApp tests independent of the load

The test of a private batch gave its two messages with 50 ms of real
quiet time between them, so on a loaded machine the first message closed
its batch alone and the test failed. The messages now come during a
catch-up, which holds the batch open until its end, so the test no
longer depends on the speed of the machine.

The test of a long disconnection waits 300 ms before the notice and 400
ms for a notice that must not come, so that a slow machine does not give
a notice between two events of the test.

Issue: 6f69ca1
whatsapp_test.go