From ee4ae0f0c55fb28b027ebcb2d4c56088dba7aba3 Mon Sep 17 00:00:00 2001 From: Matthias Diester Date: Thu, 26 Sep 2024 15:15:55 +0200 Subject: [PATCH] Fix broken submodule unit test 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 --- cmd/git/main_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/git/main_test.go b/cmd/git/main_test.go index d50543a05c..8ceeaacb25 100644 --- a/cmd/git/main_test.go +++ b/cmd/git/main_test.go @@ -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) { @@ -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()) }) }) })