mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-20 14:02:34 +02:00
fix: test
This commit is contained in:
parent
546afad73c
commit
179d9597ae
1 changed files with 1 additions and 1 deletions
|
@ -107,6 +107,6 @@ describe("TCP Monitor", () => {
|
||||||
await tcpMonitor.check(monitor, heartbeat, {});
|
await tcpMonitor.check(monitor, heartbeat, {});
|
||||||
|
|
||||||
assert.strictEqual(heartbeat.status, DOWN);
|
assert.strictEqual(heartbeat.status, DOWN);
|
||||||
assert([ "Certificate is invalid", "Connection failed" ].includes(heartbeat.msg));
|
assert([ "Certificate is invalid", "TLS Connection failed:" ].some(prefix => heartbeat.msg.startsWith(prefix)));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue