2
0
Эх сурвалжийг харах

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

(#6271 caused the compilation server tests to fail)
Jens Fischer 8 жил өмнө
parent
commit
80dac5b3d3

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

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