Skip to content

Commit

Permalink
WIP: wait a bit extra for stats
Browse files Browse the repository at this point in the history
sometimes it's not getting anything
  • Loading branch information
lawrence-forooghian committed Dec 12, 2023
1 parent a193faf commit d9834ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rest/stats.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ define(['shared_helper', 'chai'], function (helper, chai) {
}
await rest.channels.get('channel').publish('message', 'data');
// ably.com documentation says "The most recent statistics are delayed by up to six seconds."
await new Promise((resolve) => setTimeout(resolve, 6000));
await new Promise((resolve) => setTimeout(resolve, 6000 + 4000));

const stats = (await rest.stats({ end: Date.now(), unit: 'hour' })).items[0];

Expand Down

0 comments on commit d9834ac

Please sign in to comment.