Skip to content
Snippets Groups Projects
Commit 3bb49304 authored by Sandro Weber's avatar Sandro Weber
Browse files

Merged in NRRPLT-8426-auth-timeout (pull request #324)

[NRRPLT-8426] increase timeout to 60s

* [NRRPLT-8426] increase timeout to 60s

* [NRRPLT-8426] had to set timeout to 29s, otherwise karma chrome headless times out in tests

* Merged development into NRRPLT-8426-auth-timeout

Approved-by: Benedikt Feldotto
Approved-by: Viktor Vorobev
Approved-by: Antoine Detailleur
parent b88e7f8c
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@
let keycloakClient = undefined;
const INIT_CHECK_INTERVAL_MS = 100;
const INIT_CHECK_MAX_RETRIES = 10;
const INIT_CHECK_MAX_RETRIES = 290;
(function() {
'use strict';
......
......@@ -88,16 +88,20 @@
});
});
it(' - init(), failing to initialize', function(done) {
spyOn(authService, 'authCollab').and.returnValue(Promise.reject());
authService.oidcEnabled = true;
authService.init();
authService.promiseInitialized.catch(() => {
expect(authService.initialized).toBe(false);
done();
});
});
it(
' - init(), failing to initialize',
function(done) {
spyOn(authService, 'authCollab').and.returnValue(Promise.reject());
authService.oidcEnabled = true;
authService.init();
authService.promiseInitialized.catch(() => {
expect(authService.initialized).toBe(false);
done();
});
},
30000
);
it(' - authenticate()', function() {
spyOn(authService, 'authCollab');
......
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