Skip to content

Commit c0eba9c

Browse files
committed
WIP: fix issue with query.test.ts
1 parent c51999a commit c0eba9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/database/query.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,7 +2460,7 @@ describe('Query Tests', function() {
24602460
it("Cache doesn't remove items that have fallen out of view.", async function() {
24612461
var refPair = getRandomNode(2), readRef = refPair[0], writeRef = refPair[1];
24622462

2463-
const ea = EventAccumulatorFactory.waitsForCount(1);
2463+
let ea = EventAccumulatorFactory.waitsForCount(1);
24642464
var readVal;
24652465
readRef.limitToLast(2).on('value', function(s) {
24662466
readVal = s.val();
@@ -2470,7 +2470,7 @@ describe('Query Tests', function() {
24702470
await ea.promise;
24712471
expect(readVal).to.be.null;
24722472

2473-
ea.reset(4);
2473+
ea = EventAccumulatorFactory.waitsForCount(4)
24742474
for (var i = 0; i < 4; i++) {
24752475
writeRef.child('k' + i).set(i);
24762476
}
@@ -2480,7 +2480,7 @@ describe('Query Tests', function() {
24802480
await pause(500);
24812481
expect(readVal).to.deep.equal({'k2': 2, 'k3': 3});
24822482

2483-
ea.reset(1);
2483+
ea = EventAccumulatorFactory.waitsForCount(1)
24842484
writeRef.remove();
24852485

24862486
await ea.promise;

0 commit comments

Comments
 (0)