Skip to content

Commit ae0b343

Browse files
committed
Increase timeout to handle flaky windows tests
1 parent 60f3dd0 commit ae0b343

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

RuriLib.Tests/Functions/Interop/NodeJSTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ public class NodeJsTests
1414
{
1515
private static CancellationToken TestCancellationToken => TestContext.Current.CancellationToken;
1616

17+
static NodeJsTests()
18+
{
19+
StaticNodeJSService.Configure<OutOfProcessNodeJSServiceOptions>(options =>
20+
{
21+
options.ConnectionTimeoutMS = 15000;
22+
options.NumConnectionRetries = 1;
23+
});
24+
}
25+
1726
private static string BuildScript(string innerScript, string[] inputs, string[] outputs) => @$"module.exports = (callback, {MakeInputs(inputs)}) => {{
1827
{innerScript}
1928
var noderesult = {{

0 commit comments

Comments
 (0)