Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit fd2a98b

Browse files
author
davidebbo
committed
Make WarningAsErrors test more flexible
1 parent b31e6ae commit fd2a98b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Kudu.FunctionalTests/GitRepositoryManagementTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ public void WarningsAsErrors()
200200
Assert.Equal(1, results.Count);
201201
Assert.Equal(DeployStatus.Failed, results[0].Status);
202202
Assert.Null(results[0].LastSuccessEndTime);
203-
KuduAssert.VerifyLogOutput(appManager, results[0].Id, "error CS0168: The variable 'x' is declared but never used");
204-
Assert.True(deployResult.GitTrace.Contains("error CS0168: The variable 'x' is declared but never used"));
203+
KuduAssert.VerifyLogOutput(appManager, results[0].Id, "The variable 'x' is declared but never used");
204+
Assert.True(deployResult.GitTrace.Contains("The variable 'x' is declared but never used"));
205205
Assert.True(deployResult.GitTrace.Contains("Error - Changes committed to remote repository but deployment to website failed"));
206206
});
207207
}

0 commit comments

Comments
 (0)