Skip to content

Commit 49b4f41

Browse files
authored
Quarantine dotnet-user-secrets InitCommandTests (#21338)
1 parent 3af92e2 commit 49b4f41

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Tools/dotnet-user-secrets/src/Internal/ProjectIdResolver.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public string Resolve(string project, string configuration)
9898
{
9999
_reporter.Verbose(outputBuilder.ToString());
100100
_reporter.Verbose(errorBuilder.ToString());
101+
_reporter.Error($"Exit code: {process.ExitCode}");
101102
throw new InvalidOperationException(Resources.FormatError_ProjectFailedToLoad(projectFile));
102103
}
103104

src/Tools/dotnet-user-secrets/test/InitCommandTest.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public InitCommandTests(UserSecretsTestFixture fixture, ITestOutputHelper output
3232
private CommandContext MakeCommandContext() => new CommandContext(null, new TestReporter(_output), _console);
3333

3434
[Fact]
35+
[QuarantinedTest]
3536
public void AddsSecretIdToProject()
3637
{
3738
var projectDir = _fixture.CreateProject(null);
@@ -44,6 +45,7 @@ public void AddsSecretIdToProject()
4445
}
4546

4647
[Fact]
48+
[QuarantinedTest]
4749
public void AddsSpecificSecretIdToProject()
4850
{
4951
const string SecretId = "TestSecretId";
@@ -58,6 +60,7 @@ public void AddsSpecificSecretIdToProject()
5860
}
5961

6062
[Fact]
63+
[QuarantinedTest]
6164
public void AddsEscapedSpecificSecretIdToProject()
6265
{
6366
const string SecretId = @"<lots of XML invalid values>&";
@@ -72,6 +75,7 @@ public void AddsEscapedSpecificSecretIdToProject()
7275
}
7376

7477
[Fact]
78+
[QuarantinedTest]
7579
public void DoesNotGenerateIdForProjectWithSecretId()
7680
{
7781
const string SecretId = "AlreadyExists";
@@ -114,6 +118,7 @@ public void DoesNotRemoveBlankLines()
114118
}
115119

116120
[Fact]
121+
[QuarantinedTest]
117122
public void OverridesIdForProjectWithSecretId()
118123
{
119124
const string SecretId = "AlreadyExists";

0 commit comments

Comments
 (0)