Skip to content

Commit 3ea9b0b

Browse files
committed
do not run time monitor in test mode
1 parent b845d3e commit 3ea9b0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/packages/nats/time.ts

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ async function syncLoop() {
112112
// periodically check if the client thinks we are connected, but
113113
// the clock isn't updating. If so, reconnect.
114114
async function monitorLoop() {
115+
if (process.env.COCALC_TEST_MODE) {
116+
return;
117+
}
115118
const client = getClient();
116119
while (state != "closed" && client.state != "closed") {
117120
await delay(5000);

0 commit comments

Comments
 (0)