Commit 6eca39f8 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'winh-fail-slow-karma-tests-ee' into 'master'

Fail Karma tests that take longer than a second (EE-port)

Closes gitlab-ce#44174

See merge request gitlab-org/gitlab-ee!6477
parents fc73854d 072799d0
......@@ -91,6 +91,19 @@ beforeEach(() => {
Vue.http.interceptors = builtinVueHttpInterceptors.slice();
});
let longRunningTestTimeoutHandle;
beforeEach((done) => {
longRunningTestTimeoutHandle = setTimeout(() => {
done.fail('Test is running too long!');
}, 1000);
done();
});
afterEach(() => {
clearTimeout(longRunningTestTimeoutHandle);
});
const axiosDefaultAdapter = getDefaultAdapter();
// render all of our tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment