Commit 3549f6ae authored by Luca Bianconi's avatar Luca Bianconi Committed by Matteo Pologruto

[skip-changelog] test: updated expected cores file (#2066)

parent b5563423
...@@ -990,5 +990,5 @@ func TestCoreInstallCreatesInstalledJson(t *testing.T) { ...@@ -990,5 +990,5 @@ func TestCoreInstallCreatesInstalledJson(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
sortedInstalled := requirejson.Parse(t, installedJson).Query("walk(if type == \"array\" then sort else . end)").String() sortedInstalled := requirejson.Parse(t, installedJson).Query("walk(if type == \"array\" then sort else . end)").String()
sortedExpected := requirejson.Parse(t, expectedInstalledJson).Query("walk(if type == \"array\" then sort else . end)").String() sortedExpected := requirejson.Parse(t, expectedInstalledJson).Query("walk(if type == \"array\" then sort else . end)").String()
require.Equal(t, sortedExpected, sortedInstalled) require.JSONEq(t, sortedExpected, sortedInstalled)
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment