소스 검색

Add memory leak test retry run if it fails.

Maciej Gołaszewski 7 년 전
부모
커밋
5b25542987
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      packages/ckeditor5-core/tests/_utils/memory.js

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

@@ -33,6 +33,10 @@ export function testMemoryUsage( testName, editorCreator ) {
 		// This is a long-running test unfortunately.
 		this.timeout( 8000 );
 
+		// It happens from time to time that Browser will allocate additional resources and the test will fail slightly by ~100-200kB.
+		// In such scenarios another run of test should pass.
+		this.retries( 2 );
+
 		return runTest( editorCreator );
 	} );
 }