Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/javascripts/test_bundle.js5
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`);
}
});