Skip to content

Commit c4a8655

Browse files
checkout test file
1 parent a322df1 commit c4a8655

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

test/Microsoft.ML.AutoML.Tests/AutoMLExperimentTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,16 @@ public async Task AutoMLExperiment_throw_timeout_exception_when_ct_is_canceled_a
3939
{
4040
var channel = serviceProvider.GetService<IChannel>();
4141
var settings = serviceProvider.GetService<AutoMLExperiment.AutoMLExperimentSettings>();
42-
return new DummyTrialRunner(settings, 50, channel);
42+
return new DummyTrialRunner(settings, 5, channel);
4343
})
4444
.SetTuner<RandomSearchTuner>();
4545

4646
var cts = new CancellationTokenSource();
4747

4848
context.Log += (o, e) =>
4949
{
50-
this.Output.WriteLine(e.RawMessage);
5150
if (e.RawMessage.Contains("Update Running Trial"))
5251
{
53-
this.Output.WriteLine(e.RawMessage);
5452
cts.Cancel();
5553
}
5654
};

test/Microsoft.ML.AutoML.Tests/StopTrainingManagerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task TimeoutTrainingStopManager_isStopTrainingRequested_test()
7070
public async Task AggregateTrainingStopManager_isStopTrainingRequested_test()
7171
{
7272
var cts = new CancellationTokenSource();
73-
var timeoutManager = new TimeoutTrainingStopManager(TimeSpan.FromSeconds(0), null);
73+
var timeoutManager = new TimeoutTrainingStopManager(TimeSpan.FromSeconds(1), null);
7474
var cancellationManager = new CancellationTokenStopTrainingManager(cts.Token, null);
7575
var aggregationManager = new AggregateTrainingStopManager(null, timeoutManager, cancellationManager);
7676

0 commit comments

Comments
 (0)