Skip to content

Commit a00e824

Browse files
committed
fix: failing test
1 parent 4568ecb commit a00e824

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ bin/
3131
out/
3232
._DS_Store
3333

34-
exec-checkout/
34+
exec-checkout/
35+
__debug_bin*

scrapers/exec/exec_git_integration_test.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package exec
33
import (
44
"encoding/json"
55
"fmt"
6-
"os"
76

87
ginkgo "github.com/onsi/ginkgo/v2"
98
. "github.com/onsi/gomega"
@@ -16,13 +15,6 @@ var _ = ginkgo.Describe("Exec Scraper - Git Checkout Integration", ginkgo.Ordere
1615
// Load fixture from fixtures directory
1716
scrapeConfig := getConfigSpec("exec-git-checkout-test")
1817

19-
// Get absolute path to config-db repository for git checkout
20-
repoPath, err := os.Getwd()
21-
Expect(err).NotTo(HaveOccurred())
22-
23-
// Update checkout URL to use local repository via file:// protocol
24-
scrapeConfig.Spec.Exec[0].Checkout.URL = fmt.Sprintf("file://%s", repoPath)
25-
2618
// Create context using DefaultContext from suite
2719
scraperCtx := api.NewScrapeContext(DefaultContext).WithScrapeConfig(&scrapeConfig)
2820

@@ -43,7 +35,7 @@ var _ = ginkgo.Describe("Exec Scraper - Git Checkout Integration", ginkgo.Ordere
4335
configStr, ok := results[0].Config.(string)
4436
Expect(ok).To(BeTrue(), "Config should be a string")
4537
var config1 map[string]any
46-
err = json.Unmarshal([]byte(configStr), &config1)
38+
err := json.Unmarshal([]byte(configStr), &config1)
4739
Expect(err).NotTo(HaveOccurred())
4840
Expect(config1["id"]).To(Equal("config-1"))
4941
Expect(config1["type"]).To(Equal("Custom::Config"))

0 commit comments

Comments
 (0)