From 31c1d073d28b0adc5b0ed7062a8b375678cef564 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Mon, 23 Dec 2024 15:52:57 +1100 Subject: [PATCH] fix: flakey test --- common/schema/schema_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/schema/schema_test.go b/common/schema/schema_test.go index 684c0f477..0bb87a607 100644 --- a/common/schema/schema_test.go +++ b/common/schema/schema_test.go @@ -1070,7 +1070,7 @@ module c { actual, err := ParseString("", input) assert.NoError(t, err) actual = Normalise(actual) - assert.Equal(t, []string{"b", "c"}, maps.Keys(actual.ModuleDependencies("a"))) + assert.Equal(t, slices.Sort([]string{"b", "c"}), slices.Sort(maps.Keys(actual.ModuleDependencies("a")))) assert.Equal(t, []string{"c"}, maps.Keys(actual.ModuleDependencies("b"))) assert.Equal(t, []string{}, maps.Keys(actual.ModuleDependencies("c")))