mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: rename ExpectMatchContext to ExpectMatch (#25998)
Cleans the last few instances of ExpectMatch that didn't use the new `(ctx, ...)` variant, then deletes the deprecated method and renames `ExpectMatchContext` to drop the `Context` suffix.
This commit is contained in:
@@ -52,7 +52,7 @@ func TestCliTemplateCreate(t *testing.T) {
|
||||
{match: "Confirm create?", write: "yes"},
|
||||
}
|
||||
for _, m := range matches {
|
||||
stdout.ExpectMatchContext(ctx, m.match)
|
||||
stdout.ExpectMatch(ctx, m.match)
|
||||
if len(m.write) > 0 {
|
||||
stdin.WriteLine(m.write)
|
||||
}
|
||||
@@ -92,7 +92,7 @@ func TestCliTemplateCreate(t *testing.T) {
|
||||
{match: "Upload", write: "no"},
|
||||
}
|
||||
for _, m := range matches {
|
||||
stdout.ExpectMatchContext(ctx, m.match)
|
||||
stdout.ExpectMatch(ctx, m.match)
|
||||
if len(m.write) > 0 {
|
||||
stdin.WriteLine(m.write)
|
||||
}
|
||||
@@ -248,7 +248,7 @@ func TestCliTemplateCreate(t *testing.T) {
|
||||
{match: "Confirm create?", write: "yes"},
|
||||
}
|
||||
for _, m := range matches {
|
||||
stdout.ExpectMatchContext(ctx, m.match)
|
||||
stdout.ExpectMatch(ctx, m.match)
|
||||
if len(m.write) > 0 {
|
||||
stdin.WriteLine(m.write)
|
||||
}
|
||||
@@ -288,7 +288,7 @@ func TestCliTemplateCreate(t *testing.T) {
|
||||
{match: "Confirm create?", write: "yes"},
|
||||
}
|
||||
for _, m := range matches {
|
||||
stdout.ExpectMatchContext(ctx, m.match)
|
||||
stdout.ExpectMatch(ctx, m.match)
|
||||
if len(m.write) > 0 {
|
||||
stdin.WriteLine(m.write)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user