Skip to content

Commit

Permalink
fix filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Nov 10, 2021
1 parent 136534b commit a2a63ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integration/apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package integration

import (
"fmt"
"path/filepath"
"testing"

"github.com/GoogleContainerTools/skaffold/integration/skaffold"
Expand Down Expand Up @@ -95,8 +96,8 @@ func TestApplyStatusCheckFailure(t *testing.T) {
for _, test := range tests {
testutil.Run(t, test.description, func(t *testutil.T) {
ns, _ := SetupNamespace(t.T)
defer skaffold.Delete("-p", test.profile).InDir("testdata/apply").InNs(ns.Name).Run(t.T)
err := skaffold.Apply(fmt.Sprintf("%s.yaml", test.profile)).InDir("testdata/apply").InNs(ns.Name).Run(t.T)
defer skaffold.Delete("-p", test.profile).InDir(filepath.Join("testdata", "apply")).InNs(ns.Name).Run(t.T)
err := skaffold.Apply(fmt.Sprintf("%s.yaml", test.profile)).InDir(filepath.Join("testdata/apply")).InNs(ns.Name).Run(t.T)
t.CheckError(true, err)
})
}
Expand Down

0 comments on commit a2a63ec

Please sign in to comment.