Selaa lähdekoodia

Merge pull request #158 from ckeditor/t/memory-tests-retries

Tests: Add failing memory leak test retries.
Piotrek Koszuliński 6 vuotta sitten
vanhempi
sitoutus
4c6ea35d6b
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      packages/ckeditor5-core/tests/_utils/memory.js

+ 4 - 0
packages/ckeditor5-core/tests/_utils/memory.js

@@ -5,6 +5,7 @@
 
 /* global window, document, setTimeout */
 
+const TEST_RETRIES = 2;
 const TEST_TIMEOUT = 5000;
 const GARBAGE_COLLECTOR_TIMEOUT = 500;
 
@@ -58,6 +59,9 @@ export function testMemoryUsage( testName, createEditor ) {
 	it( testName, function() {
 		this.timeout( TEST_TIMEOUT );
 
+		// Unfortunately the tests fails from time to time so retry a failed tests.
+		this.retries( TEST_RETRIES );
+
 		return runTest( createEditor );
 	} );
 }