Skip to content

Commit

Permalink
Removed unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rhodesp committed Jan 16, 2025
1 parent 7624019 commit eed4dab
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pkg/application/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ var _ = Describe("Create new application", func() {

var (
cplatformServerRepo *gittest.BareRepository
cplatformLocalRepo *git.LocalRepository
templatesServerRepo *gittest.BareRepository
templatesLocalRepo *git.LocalRepository
newAppServerRepo *gittest.BareRepository

newRepoId int64
Expand All @@ -57,15 +55,14 @@ var _ = Describe("Create new application", func() {
var err error
_, err = gittest.CreateTestCorectlConfig(t.TempDir())
assert.NoError(t, err)
cplatformServerRepo, cplatformLocalRepo, err = gittest.CreateBareAndLocalRepoFromDir(&gittest.CreateBareAndLocalRepoOp{
cplatformServerRepo, _, err = gittest.CreateBareAndLocalRepoFromDir(&gittest.CreateBareAndLocalRepoOp{
SourceDir: testdata.CPlatformEnvsPath(),
TargetBareRepoDir: t.TempDir(),
TargetLocalRepoDir: config.GetCorectlCPlatformDir(),
})
_ = cplatformLocalRepo
Expect(err).NotTo(HaveOccurred())

templatesServerRepo, templatesLocalRepo, err = gittest.CreateBareAndLocalRepoFromDir(&gittest.CreateBareAndLocalRepoOp{
templatesServerRepo, _, err = gittest.CreateBareAndLocalRepoFromDir(&gittest.CreateBareAndLocalRepoOp{
SourceDir: testdata.TemplatesPath(),
TargetBareRepoDir: t.TempDir(),
TargetLocalRepoDir: config.GetCorectlTemplatesDir(),
Expand Down Expand Up @@ -138,7 +135,7 @@ var _ = Describe("Create new application", func() {
Renderer: &render.FlagsAwareTemplateRenderer{},
}
service = NewService(renderer, githubClient, false)
templateToUse, err := template.FindByName(templatesLocalRepo.Path(), testdata.BlankTemplate())
templateToUse, err := template.FindByName(config.GetCorectlTemplatesDir(), testdata.BlankTemplate())
Expect(err).NotTo(HaveOccurred())

localAppRepoDir = t.TempDir()
Expand Down Expand Up @@ -353,7 +350,7 @@ var _ = Describe("Create new application", func() {
})
Expect(err).NotTo(HaveOccurred())

templateToUse, err := template.FindByName(templatesLocalRepo.Path(), testdata.BlankTemplate())
templateToUse, err := template.FindByName(config.GetCorectlTemplatesDir(), testdata.BlankTemplate())
Expect(err).NotTo(HaveOccurred())
Expect(templateToUse).NotTo(BeNil())

Expand Down Expand Up @@ -512,7 +509,7 @@ var _ = Describe("Create new application", func() {
})
Expect(err).NotTo(HaveOccurred())

templateToUse, _ := template.FindByName(templatesLocalRepo.Path(), testdata.BlankTemplate())
templateToUse, _ := template.FindByName(config.GetCorectlTemplatesDir(), testdata.BlankTemplate())

monorepoLocalPath = monorepoLocalRepo.Path()
newAppLocalPath = filepath.Join(monorepoLocalRepo.Path(), "app-with-error")
Expand Down

0 comments on commit eed4dab

Please sign in to comment.