diff options
-rw-r--r-- | spec/javascripts/test_bundle.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index 8ec4ac2baf6..13bd400a41b 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -41,8 +41,9 @@ beforeEach(() => { }); afterEach(() => { const now = new Date(); - if (now.getTime() - testStarted.getTime() > 300) { - fail('too long!'); + const testDuration = now.getTime() - testStarted.getTime(); + if (testDuration > 300) { + fail(`Test is taking too long! ${testDuration}ms`); } }); |