Skip to content

Commit

Permalink
Fix nodejs sdk hanging on shutdown (#168)
Browse files Browse the repository at this point in the history
* Fix nodejs sdk hanging on shutdown

* Fix test
  • Loading branch information
tore-statsig authored May 13, 2022
1 parent 0c6f862 commit d9ce280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SpecStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const SpecStore = {
}
} catch (e) {}

this.syncTimer = setTimeout(() => {
this.idListsSyncTimer = setTimeout(() => {
this._syncIDLists();
}, this.idListSyncInterval);
},
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/ClientInitializeResponseConsistency.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ if (secret) {
});

[
// nocommit 'https://api.statsig.com/v1',
'https://latest.api.statsig.com/v1',
'https://api.statsig.com/v1',
].map((url) =>
test(`server and SDK evaluates gates to the same results on ${url}`, async () => {
await _validateInitializeConsistency(url);
Expand Down

0 comments on commit d9ce280

Please sign in to comment.