aboutsummaryrefslogtreecommitdiff
path: root/commitquery/queries_is_ancestor_integration_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'commitquery/queries_is_ancestor_integration_test.go')
-rw-r--r--commitquery/queries_is_ancestor_integration_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/commitquery/queries_is_ancestor_integration_test.go b/commitquery/queries_is_ancestor_integration_test.go
index 8db680e6..7e8886a9 100644
--- a/commitquery/queries_is_ancestor_integration_test.go
+++ b/commitquery/queries_is_ancestor_integration_test.go
@@ -7,6 +7,7 @@ import (
"codeberg.org/lindenii/furgit/commitquery"
giterrors "codeberg.org/lindenii/furgit/errors"
"codeberg.org/lindenii/furgit/internal/testgit"
+ "codeberg.org/lindenii/furgit/object/fetch"
objectid "codeberg.org/lindenii/furgit/object/id"
)
@@ -33,7 +34,7 @@ func TestIsMatchesGitMergeBase(t *testing.T) {
store := testRepo.OpenObjectStore(t)
- got, err := commitquery.New(store, nil).IsAncestor(c1, tag)
+ got, err := commitquery.New(fetch.New(store), nil).IsAncestor(c1, tag)
if err != nil {
t.Fatalf("Is(c1, tag): %v", err)
}
@@ -43,7 +44,7 @@ func TestIsMatchesGitMergeBase(t *testing.T) {
t.Fatalf("Is(c1, tag)=%v, want %v", got, want)
}
- got, err = commitquery.New(store, nil).IsAncestor(c3, c2)
+ got, err = commitquery.New(fetch.New(store), nil).IsAncestor(c3, c2)
if err != nil {
t.Fatalf("Is(c3, c2): %v", err)
}
@@ -78,7 +79,7 @@ func TestIsMatchesGitMergeBaseWithCommitGraph(t *testing.T) {
store := testRepo.OpenObjectStore(t)
graph := testRepo.OpenCommitGraph(t)
- got, err := commitquery.New(store, graph).IsAncestor(c1, c2)
+ got, err := commitquery.New(fetch.New(store), graph).IsAncestor(c1, c2)
if err != nil {
t.Fatalf("Is(c1, c2): %v", err)
}
@@ -106,7 +107,7 @@ func TestIsMissingObject(t *testing.T) {
store := testRepo.OpenObjectStore(t)
- _, err := commitquery.New(store, nil).IsAncestor(treeID, commitID)
+ _, err := commitquery.New(fetch.New(store), nil).IsAncestor(treeID, commitID)
if err == nil {
t.Fatal("expected error")
}