Skip to content

Commit 53a5edb

Browse files
committed
test/e2e: change current dir to root in TestMemcached
1 parent 23329a2 commit 53a5edb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/e2e/memcached_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ func TestMemcached(t *testing.T) {
4848
if !ok {
4949
t.Fatalf("$GOPATH not set")
5050
}
51+
cd, err := os.Getwd()
52+
if err != nil {
53+
t.Fatal(err)
54+
}
55+
defer func() {
56+
os.Chdir(cd)
57+
}()
5158
os.Chdir(path.Join(gopath, "/src/github.com/example-inc"))
5259
t.Log("Creating new operator project")
5360
cmdOut, err := exec.Command("operator-sdk",

0 commit comments

Comments
 (0)