Browse Source

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

(#6271 caused the compilation server tests to fail)
Jens Fischer 8 years ago
parent
commit
80dac5b3d3
1 changed files with 2 additions and 1 deletions
  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 = "{}";