properly test handle state as we cannot intercept errors from bindEnvironment

This commit is contained in:
Leonardo Venturini
2024-12-30 09:17:14 -03:00
parent 781f079e2d
commit 8db7c8e733

View File

@@ -533,12 +533,15 @@ Tinytest.addAsync('livedata server - publication stop should not throw error', a
});
initializing = false;
this.added('issueUnreadCount', user._id, {count});
this.onStop(handle.stop);
this.onStop(() => {
console.log('onStop');
handle.stop();
});
test.isTrue(handle._stopped)
})
this.ready();
}
});
@@ -575,8 +578,6 @@ Tinytest.addAsync('livedata server - publication stop should not throw error', a
sub5.stop();
console.log(messages);
cleanup();
});