Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit c25e4cc

Browse files
committed
fix test break due to existing dir
fix test break due to existing dir error which is a change in behavior introduced in previous commit
1 parent 9bb1ece commit c25e4cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

new_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ func TestGetCloudCodeDir(t *testing.T) {
8080
h.Out.Reset()
8181
h.Env.In = ioutil.NopCloser(strings.NewReader("\n"))
8282
name, err = n.getCloudCodeDir(h.Env, "myapp", false)
83-
ensure.Nil(t, err)
84-
ensure.StringContains(t, h.Out.String(), "folder where we can download the latest")
83+
ensure.Err(t, err, regexp.MustCompile("a directory named: \"myapp\" already exists"))
8584
}
8685

8786
func TestNewCmdDirs(t *testing.T) {

0 commit comments

Comments
 (0)