Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5df951b

Browse files
committed
fix test assert
1 parent d88d7be commit 5df951b

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

cli/templatecreate_test.go

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -243,19 +243,7 @@ func TestTemplateCreate(t *testing.T) {
243243
assert.Error(t, err)
244244
}()
245245

246-
matches := []struct {
247-
match string
248-
write string
249-
}{
250-
{match: "Upload", write: "yes"},
251-
}
252-
for _, m := range matches {
253-
pty.ExpectMatch(m.match)
254-
if len(m.write) > 0 {
255-
pty.WriteLine(m.write)
256-
}
257-
}
258-
246+
pty.ExpectMatch("context canceled")
259247
<-ctx.Done()
260248
})
261249

0 commit comments

Comments
 (0)