Skip to content

Commit 63a1714

Browse files
fix test can_reload_model (#5287)
1 parent 9390f3b commit 63a1714

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Microsoft.Extensions.ML.Tests/FileLoaderTests.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using Microsoft.Extensions.Primitives;
1212
using Microsoft.ML.Data;
1313
using Microsoft.ML.TestFramework;
14+
using Microsoft.ML.TestFrameworkCommon;
1415
using Xunit;
1516
using Xunit.Abstractions;
1617

@@ -72,7 +73,7 @@ public void can_reload_model()
7273

7374
File.WriteAllText("testdata.txt", "test");
7475

75-
Assert.True(changed.WaitOne(2000), "FileLoader ChangeToken didn't fire before the allotted time.");
76+
Assert.True(changed.WaitOne(AsyncTestHelper.UnexpectedTimeout), "FileLoader ChangeToken didn't fire before the allotted time.");
7677
}
7778

7879

0 commit comments

Comments
 (0)