-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - Intoduced timeout infinite as default value for Compile-comfiguration command. - add `--timeout` option for all remote commands. * fix failing tests, use options without Substitute --------- Co-authored-by: Kirill Krylov <k.krylov@reatio.om>
- Loading branch information
1 parent
69fdee3
commit c9f27c6
Showing
5 changed files
with
68 additions
and
6 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
clio.tests/Command/ApplicationCommand/CompileConfigurationOptionsTestFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System.Threading; | ||
using Clio.Command; | ||
using FluentAssertions; | ||
using NUnit.Framework; | ||
|
||
namespace Clio.Tests.Command.ApplicationCommand; | ||
|
||
[TestFixture] | ||
public class CompileConfigurationOptionsTestFixture { | ||
|
||
[Test] | ||
public void CanSetTimeout(){ | ||
//Arrange | ||
RemoteCommandOptions options = new() { | ||
TimeOut = 50 | ||
}; | ||
|
||
//Assert | ||
options.TimeOut.Should().Be(50); | ||
} | ||
|
||
[Test] | ||
public void DefaultTimeout_ShouldBe_Infinite(){ | ||
//Arrange | ||
CompileConfigurationOptions options = new(); | ||
|
||
//Assert | ||
options.TimeOut.Should().Be(Timeout.Infinite); | ||
} | ||
|
||
[Test] | ||
public void DefaultTimeoutInReomoe_ShouldBe_100K(){ | ||
//Arrange | ||
RemoteCommandOptions options = new(); | ||
|
||
//Assert | ||
options.TimeOut.Should().Be(100_000); | ||
} | ||
|
||
|
||
[Test] | ||
public void RestartOPtions(){ | ||
//Arrange | ||
RestartOptions options = new(); | ||
|
||
//Assert | ||
options.TimeOut.Should().Be(100_000); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters