1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Tests: Integration harness fixes and refactors. (#2569)

* Test harness fixes and integration test refactor and addition.

* Clean up.

* Address review comments.

* Improve method names.
This commit is contained in:
mic704b
2020-02-28 05:25:42 +11:00
committed by GitHub
parent a576ad2a39
commit 54dc2219fe
10 changed files with 221 additions and 173 deletions

View File

@@ -193,7 +193,10 @@ reg.db = () => {
};
reg.cancelTimers = async () => {
if (this.recurrentSyncId_) clearTimeout(this.recurrentSyncId_);
if (this.recurrentSyncId_) {
clearTimeout(this.recurrentSyncId_);
this.recurrentSyncId_ = null;
}
return new Promise((resolve) => {
const iid = setInterval(() => {
if (!reg.syncCalls_.length) {