ソースを参照

increased timeout for all server tests

Aleksandr Kuzmenko 5 年 前
コミット
941b262c24

+ 0 - 1
tests/server/src/cases/ReplaceRanges.hx

@@ -5,7 +5,6 @@ import haxe.display.FsPath;
 import haxe.display.Display;
 import utest.Assert.*;
 
-@:timeout(5000)
 // TODO: somebody has to clean this up
 class ReplaceRanges extends TestCase {
 	function complete<S, T>(content:String, markerIndex:Int, cb:(response:CompletionResponse<S, T>, markers:Map<Int, Int>) -> Void) {

+ 0 - 1
tests/server/src/cases/ServerTests.hx

@@ -8,7 +8,6 @@ import utest.Assert;
 using StringTools;
 using Lambda;
 
-@:timeout(10000)
 class ServerTests extends TestCase {
 	function testNoModification() {
 		vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));

+ 1 - 2
tests/server/src/utils/macro/DisplayTestBuilder.macro.hx

@@ -46,10 +46,9 @@ class DisplayTestBuilder {
 	static function generateInit(field:Field):Expr {
 		return switch field.doc {
 			case null:
-				macro async.setTimeout(5000);
+				macro {}
 			case src:
 				macro {
-					async.setTimeout(5000);
 					_markers = utils.Markers.parse($v{src});
 					vfs.putContent("Main.hx", markers.source);
 				}

+ 1 - 1
tests/server/src/utils/macro/TestBuilder.macro.hx

@@ -37,7 +37,7 @@ class TestBuilder {
 							var pos = Context.makePosition({min: posInfos.max, max: posInfos.max, file: posInfos.file});
 							el.push(macro @:pos(pos) $i{asyncName}.done());
 							f.expr = macro {
-								$i{asyncName}.setTimeout(10000);
+								$i{asyncName}.setTimeout(20000);
 								${transformHaxeCalls(asyncName, el)};
 							}
 						case _: