diff --git a/pkg/graveler/ref/manager_test.go b/pkg/graveler/ref/manager_test.go index 4f0901e5f15..e508d8d6e43 100644 --- a/pkg/graveler/ref/manager_test.go +++ b/pkg/graveler/ref/manager_test.go @@ -819,7 +819,7 @@ func TestManager_LogGraph(t *testing.T) { /* ---1----2----4----7 \ \ - 3----5----6----8--- + 3----5----6----8 */ "full_graph": { start: "c8", @@ -830,6 +830,11 @@ func TestManager_LogGraph(t *testing.T) { firstParent: true, expected: []string{"c8", "c6", "c5", "c3", "c1"}, }, + "full_graph_no_merges": { + start: "c8", + noMerges: true, + expected: []string{"c6", "c5", "c3", "c1"}, + }, "with_seek": { start: "c8", seek: "c4", @@ -841,6 +846,18 @@ func TestManager_LogGraph(t *testing.T) { firstParent: true, expected: []string{"c5", "c3", "c1"}, }, + "with_seek_no_merges": { + start: "c8", + seek: "c5", + noMerges: true, + expected: []string{"c5", "c3", "c1"}, + }, + "with_seek_no_merges2": { + start: "c8", + seek: "c4", + noMerges: true, + expected: nil, + }, "start_from": { start: "c7", expected: []string{"c7", "c4", "c2", "c1"},