aboutsummaryrefslogtreecommitdiff
path: root/internal/fetchdatasource/fetchdatasource_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fetchdatasource/fetchdatasource_test.go')
-rw-r--r--internal/fetchdatasource/fetchdatasource_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/fetchdatasource/fetchdatasource_test.go b/internal/fetchdatasource/fetchdatasource_test.go
index 05cb121a..223c38bd 100644
--- a/internal/fetchdatasource/fetchdatasource_test.go
+++ b/internal/fetchdatasource/fetchdatasource_test.go
@@ -227,7 +227,7 @@ func TestBypass(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- got, err := ds.GetUnit(ctx, um, 0, internal.BuildContext{})
+ got, err := ds.GetUnit(ctx, um, internal.WithDocsSource, internal.BuildContext{})
if err != nil {
t.Fatal(err)
}
@@ -495,7 +495,7 @@ func TestGetUnit(t *testing.T) {
Path: test.path,
ModuleInfo: internal.ModuleInfo{ModulePath: test.modulePath},
}
- got, err := ds.GetUnit(ctx, um, 0, internal.BuildContext{})
+ got, err := ds.GetUnit(ctx, um, internal.WithDocsSource, internal.BuildContext{})
if !test.wantLoaded {
if err == nil {
t.Fatal("returned not loaded module")