Skip to content

Commit

Permalink
[tests] call server/resetCache between display test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Dec 12, 2024
1 parent 02ecb42 commit 2f50584
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/display/src/RpcDisplayTestCase.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import haxe.display.Display;
import haxe.display.Position.Range;
import haxe.display.Protocol;
import haxe.Json;
import utest.Assert;
import Types;

Expand All @@ -11,6 +13,13 @@ class RpcDisplayTestCase implements utest.ITest {

public function new() {}

@:timeout(3000)
public function setup() {
var methodArgs = {method: Methods.ResetCache, id: 1, params: {}};
var args = ['--display', Json.stringify(methodArgs)];
BaseDisplayTestContext.runHaxe(args);
}

// api
inline function pos(name)
return ctx.pos(name);
Expand Down

0 comments on commit 2f50584

Please sign in to comment.