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:
@@ -205,7 +205,7 @@ func TestExpTaskDelete(t *testing.T) {
|
||||
stdout := expecter.NewAttachedToInvocation(t, inv)
|
||||
stdin := testutil.NewWriterAttachedToInvocation(t, logger.Named("stdin"), inv)
|
||||
w := clitest.StartWithWaiter(t, inv)
|
||||
stdout.ExpectMatchContext(ctx, "Delete these tasks:")
|
||||
stdout.ExpectMatch(ctx, "Delete these tasks:")
|
||||
stdin.WriteLine("yes")
|
||||
runErr = w.Wait()
|
||||
outBuf.Write(stdout.ReadAll())
|
||||
|
||||
Reference in New Issue
Block a user