Skip to content
Snippets Groups Projects
Commit cb21e8be authored by apolcyn's avatar apolcyn Committed by GitHub
Browse files

Merge pull request #7598 from apolcyn/fix_sanity_test_diff_ga

compare test config as objects instead of strings
parents f45dd74b b4280fa0
No related branches found
No related tags found
No related merge requests found
......@@ -58,10 +58,11 @@ namespace Grpc.Core.Tests
[Test]
public void TestsJsonUpToDate()
{
var discoveredTests = DiscoverAllTestClasses();
string discoveredTestsJson = JsonConvert.SerializeObject(discoveredTests, Formatting.Indented);
Dictionary<string, List<string>> discoveredTests = DiscoverAllTestClasses();
Dictionary<string, List<string>> testsFromFile
= JsonConvert.DeserializeObject<Dictionary<string, List<string>>>(ReadTestsJson());
Assert.AreEqual(discoveredTestsJson, ReadTestsJson());
Assert.AreEqual(discoveredTests, testsFromFile);
}
/// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment