Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse committed May 3, 2018
1 parent d86ed69 commit 9b46e9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/fixtures/apps/ons-test-dynamic/app/router.js
Expand Up @@ -17,9 +17,9 @@ module.exports = app => {
const sendResult = yield this.ons.send(msg);
assert.equal(sendResult.sendStatus, 'SEND_OK');

yield sleep(3000);

assert(app.onsMsgs.has(sendResult.msgId));
while (!app.onsMsgs.has(sendResult.msgId)) {
yield sleep(100);
}
this.body = 'ok';
});
};
6 changes: 3 additions & 3 deletions test/fixtures/apps/ons-test/app/router.js
Expand Up @@ -17,9 +17,9 @@ module.exports = app => {
const sendResult = yield this.ons.send(msg);
assert.equal(sendResult.sendStatus, 'SEND_OK');

yield sleep(3000);

assert(app.onsMsgs.has(sendResult.msgId));
while (!app.onsMsgs.has(sendResult.msgId)) {
yield sleep(100);
}
this.body = 'ok';
});
};

0 comments on commit 9b46e9c

Please sign in to comment.