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

View File

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