You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the tests for a number of service. Unfortunately the first test always fails with:
1) ping "before each" hook for "replies pong to user":
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
This happens for the first test only - the rest of them pass correctly.
The tests are run under docker based on node:4, with hubot-test-helper between 1.5.1 and latest.
Strangely, this works just fine on local machines and then fails on a buildkite agent. Same container, same versions of dependencies.
The test is just a very simple ping:
expect = require('chai').expect
Helper = require('hubot-test-helper')
helper = new Helper('./../scripts/ping.coffee')
describe 'ping', ->
room = null
beforeEach ->
# Set up the room before running the test
room = helper.createRoom()
afterEach ->
# Tear it down after the test to free up the listener.
room.destroy()
context 'user says ping to hubot', ->
beforeEach ->
room.user.say 'alice', 'hubot PING'
room.user.say 'bob', 'hubot PING'
it 'replies pong to user', ->
expect(room.messages).to.eql [
['alice', 'hubot PING']
['bob', 'hubot PING']
['hubot', 'PONG']
['hubot', 'PONG']
]
Any ideas where to look for solutions / what to try are welcome.
The text was updated successfully, but these errors were encountered:
I'm trying to run the tests for a number of service. Unfortunately the first test always fails with:
This happens for the first test only - the rest of them pass correctly.
The tests are run under docker based on
node:4
, withhubot-test-helper
between 1.5.1 and latest.Strangely, this works just fine on local machines and then fails on a buildkite agent. Same container, same versions of dependencies.
The test is just a very simple ping:
Any ideas where to look for solutions / what to try are welcome.
The text was updated successfully, but these errors were encountered: