Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Commit

Permalink
adding longer timeout in tests _sigh_
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Garvan committed Mar 15, 2016
1 parent 724814d commit 54992d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/botSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe("coffeebot works", function() {
var coffeemate = bot.Bot(rtm, request, token)
coffeemate.emptyQueue(function() {
coffeemate.run()
setTimeout(expectFn, 300);});
setTimeout(expectFn, 500);});
}

it("responds to coffee me", function(done) {
Expand Down Expand Up @@ -115,7 +115,6 @@ describe("coffeebot works", function() {
}, 20)};

runTest(function() {
console.log(messages);
expect(messages[0].indexOf('in line') > 0).toBe(true);
expect(channels[0]).toBe('ch1');
expect(messages[1].indexOf('You’re no longer in line for coffee.') >= 0).toBe(true);
Expand Down

0 comments on commit 54992d1

Please sign in to comment.