Skip to content

Commit

Permalink
Fix a variable scoping issue in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Feb 20, 2019
1 parent 308aadd commit 36f0f9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/js/session-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ module.exports = {

// check if subscriptions have been removed
// subscription1.unsubscribe() requires a server round-trip so it might take a while
let retries = 0;
let retries2 = 0;
token = setInterval(() => {
listOfSubscriptions = realm.subscriptions();
if (listOfSubscriptions.length == 5) { // the 5 permissions classes
Expand All @@ -969,7 +969,7 @@ module.exports = {
resolve();
}
// Time out after 10s
if (++retries > 20) {
if (++retries2 > 20) {
reject('Removing listeners timed out');
clearInterval(token);
}
Expand Down

0 comments on commit 36f0f9f

Please sign in to comment.