Skip to content

Commit

Permalink
Fix broken submodule unit test
Browse files Browse the repository at this point in the history
Replace website as the example repository, since it changed and its
structure doesn't work for the unit test anymore. Switch to purely
synthetic sample.

Signed-off-by: Matthias Diester <matthias.diester@de.ibm.com>
  • Loading branch information
HeavyWombat committed Sep 26, 2024
1 parent 548678e commit ee4ae0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/git/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ var _ = Describe("Git Resource", func() {
})

Context("cloning repositories with submodules", func() {
const exampleRepo = "https://github.com/shipwright-io/website"
const exampleRepo = "https://github.com/shipwright-io/sample-submodule"

It("should Git clone a repository with a submodule", func() {
withTempDir(func(target string) {
Expand All @@ -420,7 +420,7 @@ var _ = Describe("Git Resource", func() {
))).ToNot(HaveOccurred())

Expect(filepath.Join(target, "README.md")).To(BeAnExistingFile())
Expect(filepath.Join(target, "themes", "docsy", "README.md")).To(BeAnExistingFile())
Expect(filepath.Join(target, "src", "sample-go", "README.md")).To(BeAnExistingFile())
})
})
})
Expand Down

0 comments on commit ee4ae0f

Please sign in to comment.