Преглед на файлове

Increase timeout in memory tests.

Maciej Gołaszewski преди 7 години
родител
ревизия
dbfc6cac94
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      packages/ckeditor5-core/tests/_utils/memory.js

+ 5 - 1
packages/ckeditor5-core/tests/_utils/memory.js

@@ -25,7 +25,11 @@ export function describeMemoryUsage( callback ) {
  * @param {Function} editorCreator Callback which creates editor and returns it's `.create()` promise.
  * @param {Function} editorCreator Callback which creates editor and returns it's `.create()` promise.
  */
  */
 export function testMemoryUsage( testName, editorCreator ) {
 export function testMemoryUsage( testName, editorCreator ) {
-	it( testName, () => runTest( editorCreator ) );
+	it( testName, function() {
+		this.timeout( 6000 );
+
+		return runTest( editorCreator );
+	} );
 }
 }
 
 
 // Runs a single test case. This method will properly setup memory-leak test:
 // Runs a single test case. This method will properly setup memory-leak test: