Skip to content

Commit

Permalink
[tests] Also add timeout in case of GC run, and use static local
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jan 22, 2025
1 parent 979928e commit e253aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/display/src/RpcDisplayTestCase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RpcDisplayTestCase implements utest.ITest {

@:timeout(3000)
public function setup() {
var methodArgs = {method: Methods.ResetCache, id: 1, params: {}};
static var methodArgs = {method: Methods.ResetCache, id: 1, params: {}};
var args = ['--display', Json.stringify(methodArgs)];
BaseDisplayTestContext.runHaxe(args);
}
Expand Down
3 changes: 2 additions & 1 deletion tests/display/src/XmlDisplayTestCase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ class XmlDisplayTestCase implements utest.ITest {

public function new() {}

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

0 comments on commit e253aca

Please sign in to comment.