Skip to content
Snippets Groups Projects
Commit dc31edfb authored by Tim Zallmann's avatar Tim Zallmann
Browse files

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

Fail Karma tests that take longer than a second

Closes #44174

See merge request gitlab-org/gitlab-ce!20518
parents c495f8c1 d8edaf28
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment