Skip to content

Commit 052eb99

Browse files
committed
nit for slower PG test
1 parent 9b60a3e commit 052eb99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/PushController.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,11 @@ describe('PushController', () => {
716716
var config = new Config(Parse.applicationId);
717717
return Parse.Object.saveAll(installations).then(() => {
718718
return pushController.sendPush(payload, {}, config, auth);
719+
}).then(() => {
720+
// Wait a few ms to let the push be sent
721+
return new Promise((resolve) => {
722+
setTimeout(resolve, 100);
723+
});
719724
});
720725
}).then(() => {
721726
const query = new Parse.Query('_PushStatus');

0 commit comments

Comments
 (0)