Skip to content

Commit

Permalink
resolve windows os.remove error (#5091)
Browse files Browse the repository at this point in the history
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
  • Loading branch information
anandrkskd committed Sep 27, 2021
1 parent 0b735ae commit 6b4bde5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/integration/devfile/cmd_devfile_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ var _ = Describe("odo devfile create command tests", func() {
values := gjson.GetMany(output, "kind", "metadata.name", "status.state")
Expect(helper.GjsonMatcher(values, []string{"Component", "nodejs", "Unknown"})).To(Equal(true))

newKubeConfig.Close()
err = os.Remove(newKubeConfigPath)
Expect(err).To(BeNil())
})
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/devfile/cmd_devfile_debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var _ = Describe("odo devfile debug command tests", func() {
runningString := helper.Cmd("odo", "debug", "info", "--context", commonVar.Context).ShouldPass().Out()
Expect(runningString).To(ContainSubstring(freePort))
Expect(helper.ListFilesInDir(os.TempDir())).To(ContainElement(commonVar.Project + "-nodejs-cmp-odo-debug.json"))
helper.DeleteFile(filepath.Join(os.TempDir(), commonVar.Project+"-nodejs-cmp-odo-debug.json"))
defer helper.DeleteFile(filepath.Join(os.TempDir(), commonVar.Project+"-nodejs-cmp-odo-debug.json"))
stopChannel <- true
})

Expand Down

0 comments on commit 6b4bde5

Please sign in to comment.