@@ -18,7 +18,7 @@ func TestDistinctStringCollector(t *testing.T) {
1818 d .Collect ("11" )
1919
2020 require .True (t , d .Exceeded ())
21- require . Equal (t , []string {"123" , "4567" , "890" }, d .Strings ())
21+ stringsSlicesEqual (t , []string {"123" , "4567" , "890" }, d .Strings ())
2222
2323 // diff fails when diff is not enabled
2424 res , err := d .Diff ()
@@ -32,14 +32,14 @@ func TestDistinctStringCollectorDiff(t *testing.T) {
3232 d .Collect ("123" )
3333 d .Collect ("4567" )
3434
35- require . Equal (t , []string {"123" , "4567" }, readDistinctStringDiff (t , d ))
36- require . Equal (t , []string {}, readDistinctStringDiff (t , d ))
35+ stringsSlicesEqual (t , []string {"123" , "4567" }, readDistinctStringDiff (t , d ))
36+ stringsSlicesEqual (t , []string {}, readDistinctStringDiff (t , d ))
3737
3838 d .Collect ("123" )
3939 d .Collect ("890" )
4040
41- require . Equal (t , []string {"890" }, readDistinctStringDiff (t , d ))
42- require . Equal (t , []string {}, readDistinctStringDiff (t , d ))
41+ stringsSlicesEqual (t , []string {"890" }, readDistinctStringDiff (t , d ))
42+ stringsSlicesEqual (t , []string {}, readDistinctStringDiff (t , d ))
4343}
4444
4545func readDistinctStringDiff (t * testing.T , d * DistinctString ) []string {
0 commit comments