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:
@@ -57,7 +57,7 @@ func TestCurrentOrganization(t *testing.T) {
|
||||
errC <- inv.Run()
|
||||
}()
|
||||
require.NoError(t, <-errC)
|
||||
stdout.ExpectMatchContext(ctx, orgID.String())
|
||||
stdout.ExpectMatch(ctx, orgID.String())
|
||||
})
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ func TestOrganizationDelete(t *testing.T) {
|
||||
execDone <- inv.Run()
|
||||
}()
|
||||
|
||||
stdout.ExpectMatchContext(ctx, fmt.Sprintf("Delete organization %s?", pretty.Sprint(cliui.DefaultStyles.Code, "my-org")))
|
||||
stdout.ExpectMatch(ctx, fmt.Sprintf("Delete organization %s?", pretty.Sprint(cliui.DefaultStyles.Code, "my-org")))
|
||||
stdin.WriteLine("yes")
|
||||
|
||||
require.NoError(t, <-execDone)
|
||||
|
||||
Reference in New Issue
Block a user