Merge pull request #2624 from thelounge/xpaw/test-fix

Increase delay between links to remove random test failure
This commit is contained in:
Jérémie Astori 2018-07-07 02:08:24 -04:00 committed by GitHub
commit 45b87ea905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -492,8 +492,10 @@ describe("Link plugin", function() {
this.irc.language = "first language"; this.irc.language = "first language";
link(this.irc, this.network.channels[0], message); link(this.irc, this.network.channels[0], message);
this.irc.language = "second language"; setTimeout(() => {
link(this.irc, this.network.channels[0], message); this.irc.language = "second language";
link(this.irc, this.network.channels[0], message);
}, 100);
app.get("/basic-og-once-lang", function(req, res) { app.get("/basic-og-once-lang", function(req, res) {
requests.push(req.header("accept-language")); requests.push(req.header("accept-language"));