From b4992b22d5d2e5c641545709e5ac3d151acb6e18 Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Fri, 13 Dec 2024 20:22:48 +0100 Subject: [PATCH] [tests] call server/resetCache between display test cases (#11880) --- tests/display/src/RpcDisplayTestCase.hx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/display/src/RpcDisplayTestCase.hx b/tests/display/src/RpcDisplayTestCase.hx index 75a2010ab7a..bc2c60902d1 100644 --- a/tests/display/src/RpcDisplayTestCase.hx +++ b/tests/display/src/RpcDisplayTestCase.hx @@ -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; @@ -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);