Ver Fonte

[tests] needs more invalidation perhaps?

Simon Krajewski há 6 anos atrás
pai
commit
9b17baea32
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      tests/server/src/Main.hx

+ 1 - 0
tests/server/src/Main.hx

@@ -55,6 +55,7 @@ class ServerTests extends HaxeServerTestCase {
 		runHaxe(args);
 		runHaxe(args);
 		assertHasPrint("1");
 		assertHasPrint("1");
 		vfs.putContent("Macro.hx", getTemplate("Macro.hx").replace("1", "2"));
 		vfs.putContent("Macro.hx", getTemplate("Macro.hx").replace("1", "2"));
+		runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("Macro.hx")});
 		runHaxe(args);
 		runHaxe(args);
 		assertHasPrint("2");
 		assertHasPrint("2");
 		runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("MacroMain.hx")});
 		runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("MacroMain.hx")});