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:
@@ -35,7 +35,7 @@ func TestUserList(t *testing.T) {
|
||||
errC <- inv.Run()
|
||||
}()
|
||||
require.NoError(t, <-errC)
|
||||
stdout.ExpectMatchContext(ctx, "coder.com")
|
||||
stdout.ExpectMatch(ctx, "coder.com")
|
||||
})
|
||||
t.Run("JSON", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
@@ -114,7 +114,7 @@ func TestUserShow(t *testing.T) {
|
||||
err := inv.Run()
|
||||
assert.NoError(t, err)
|
||||
}()
|
||||
stdout.ExpectMatchContext(ctx, otherUser.Email)
|
||||
stdout.ExpectMatch(ctx, otherUser.Email)
|
||||
<-doneChan
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user