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:
Spike Curtis
2026-06-03 15:30:37 -04:00
committed by GitHub
parent 7d7cc27581
commit 5b692bf1cc
66 changed files with 524 additions and 536 deletions
+3 -3
View File
@@ -52,7 +52,7 @@ func TestTemplateList(t *testing.T) {
require.NoError(t, <-errC)
for _, name := range templatesList {
stdout.ExpectMatchContext(ctx, name)
stdout.ExpectMatch(ctx, name)
}
})
t.Run("ListTemplatesJSON", func(t *testing.T) {
@@ -105,7 +105,7 @@ func TestTemplateList(t *testing.T) {
require.NoError(t, <-errC)
stdout.ExpectMatchContext(ctx, "No templates found")
stdout.ExpectMatchContext(ctx, "Create one:")
stdout.ExpectMatch(ctx, "No templates found")
stdout.ExpectMatch(ctx, "Create one:")
})
}