Skip to content

Commit 354301e

Browse files
committed
Use ElementsMatch to compare the services irrespective of element ordering.
1 parent c1ee12f commit 354301e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/outline-ss-server/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ func TestReadConfigParsesDeprecatedFormat(t *testing.T) {
7575
},
7676
},
7777
}
78-
require.Equal(t, expected, *config)
78+
require.ElementsMatch(t, expected.Services, config.Services)
7979
}

0 commit comments

Comments
 (0)