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

Merge pull request #7576 from apolcyn/fix_sanity_test_diff

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