Increase delay between links to remove random test failure

This commit is contained in:
Pavel Djundik 2018-07-06 12:29:21 +03:00
parent d5f0a2481f
commit 11bd2dfa4c

View file

@ -492,8 +492,10 @@ describe("Link plugin", function() {
this.irc.language = "first language";
link(this.irc, this.network.channels[0], message);
this.irc.language = "second 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"));