Fix some tests

This commit is contained in:
Jon Staab
2025-03-31 14:06:52 -07:00
parent 1524d128e3
commit 8bc336ae5d
8 changed files with 69 additions and 251 deletions
-2
View File
@@ -205,9 +205,7 @@ export const socketPolicyReopenActive = (socket: Socket) => {
// If the socket closed and we have no error, reopen it but don't flap
if (newStatus === SocketStatus.Closed && pending.size) {
console.log("1")
sleep(Math.max(0, 30_000 - (Date.now() - lastOpen))).then(() => {
console.log("2")
for (const message of pending.values()) {
socket.send(message)
}