Skip to content

Commit

Permalink
tests(database): increase wait for query once listener
Browse files Browse the repository at this point in the history
this should fix flakiness in e2e ci
  • Loading branch information
mikehardy committed Nov 26, 2020
1 parent 1e4c97c commit e1b154a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/database/e2e/query/once.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ describe('database().ref().once()', () => {

await ref.child('foo').set(1);
ref.once('child_changed').then($ => callback($.val()));
await Utils.sleep(300);
await Utils.sleep(1000);
await ref.child('foo').set(2);
await Utils.sleep(300);
await Utils.sleep(1000);
callback.should.be.calledOnce();
callback.should.be.calledWith(2);
});
Expand All @@ -151,9 +151,9 @@ describe('database().ref().once()', () => {
await child.set('foo');

ref.once('child_removed').then($ => callback($.val()));
await Utils.sleep(300);
await Utils.sleep(1000);
await child.remove();
await Utils.sleep(300);
await Utils.sleep(1000);

callback.should.be.calledOnce();
callback.should.be.calledWith('foo');
Expand Down

1 comment on commit e1b154a

@vercel
Copy link

@vercel vercel bot commented on e1b154a Nov 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.