This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ describe("Login Route test", () => {
6363 // ignore the seconds in the comparison, just to avoid flakiness in tests,
6464 // if for some reason execution is slow between calculation of expected and actual
6565 expect ( actualExpiresDate . slice ( 0 , 23 ) ) . toBe ( expectedExpiresDate . slice ( 0 , 23 ) )
66- } ) ;
66+
67+ } , 10_000 ) ;
68+ // use 10 sec (10_000 ms) timeout for now, instead of default 5 sec to work around
69+ // failing CI, because for some reason it currently takes approx. 6 secs to run
70+ // TODO: actually identify what is causing this and fix the flakiness
6771
6872
6973 it ( "does not set Expires, when 'Remember Me' is not ticked" , async ( ) => {
@@ -80,7 +84,10 @@ describe("Login Route test", () => {
8084 const expiresCookieMatch = setCookieHeader . match ( expiresCookieRegExp ) ;
8185 expect ( expiresCookieMatch ) . toBeNull ( ) ;
8286
83- } ) ;
87+ } , 10_000 ) ;
88+ // use 10 sec (10_000 ms) timeout for now, instead of default 5 sec to work around
89+ // failing CI, because for some reason it currently takes approx. 6 secs to run
90+ // TODO: actually identify what is causing this and fix the flakiness
8491
8592
8693} ) ;
You can’t perform that action at this time.
0 commit comments