Explorar o código

Add -D compilation-server-test in the right place (#6272)

(#6271 caused the compilation server tests to fail)
Jens Fischer %!s(int64=8) %!d(string=hai) anos
pai
achega
80dac5b3d3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      tests/server/src/HaxeServerTestCase.hx

+ 2 - 1
tests/server/src/HaxeServerTestCase.hx

@@ -33,7 +33,7 @@ class HaxeServerTestCase {
 	public function setup() {
 		context = new TestContext({
 			haxePath: "haxe",
-			arguments: ["-v", "-D", "compilation-server-test", "--cwd", testDir],
+			arguments: ["-v", "--cwd", testDir],
 			env: { }
 		});
 		vfs = new Vfs(testDir);
@@ -46,6 +46,7 @@ class HaxeServerTestCase {
 	}
 
 	function haxe(args:Array<String>, done:Void -> Void) {
+		args = args.concat(["-D", "compilation-server-test"]);
 		server.process(args, null, function(result) {
 			if (result == "") {
 				result = "{}";