Skip to content

Commit 1a954c3

Browse files
committed
test: Sort quads in cayleyimport tests.
1 parent e6e0fec commit 1a954c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/cayleyimport/cayleyimport_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"net"
88
"net/http"
99
"path"
10+
"sort"
1011
"testing"
1112

1213
"github.com/cayleygraph/quad"
@@ -38,6 +39,7 @@ func allQuads(t testing.TB, qs graph.QuadStore) []quad.Quad {
3839
out = append(out, q)
3940
}
4041
require.NoError(t, it.Err())
42+
sort.Sort(quad.ByQuadString(out))
4143
return out
4244
}
4345

@@ -71,5 +73,6 @@ func TestCayleyImport(t *testing.T) {
7173
err = cmd.Execute()
7274
require.NoError(t, err)
7375
require.Empty(t, b.String())
76+
sort.Sort(quad.ByQuadString(expectData))
7477
require.Equal(t, expectData, allQuads(t, qs))
7578
}

0 commit comments

Comments
 (0)