File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,17 @@ describe("config.maxRetries", () => {
5858 } ) ;
5959 describe ( "when set to 100" , ( ) => {
6060 it ( "should avoid conflicts" , async ( ) => {
61+ // This test creates, by design, a lot of conflicts and retries until its successfull
62+ // On instrumented server builds this test has a very high chance on running for a long time
63+ // and hitting the test-timeouts. To still test this behaviour on normal builds we do a check here and
64+ // continue only when its not a asan/tsan/coverage build.
65+ const version = await db . version ( true ) ;
66+ if ( version . details !== undefined
67+ && ( version . details [ 'asan' ] === 'true'
68+ || version . details [ 'tsan' ] === 'true'
69+ || version . details [ 'coverage' ] === 'true' ) ) {
70+ return ;
71+ }
6172 await Promise . all (
6273 range ( 1_000 ) . map ( ( ) =>
6374 db . query (
You can’t perform that action at this time.
0 commit comments