mirror of
https://github.com/coder/coder.git
synced 2026-10-28 02:42:54 +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:
@@ -27,8 +27,8 @@ func TestFeaturesList(t *testing.T) {
|
||||
clitest.SetupConfig(t, anotherClient, conf)
|
||||
stdout := expecter.NewAttachedToInvocation(t, inv)
|
||||
clitest.Start(t, inv)
|
||||
stdout.ExpectMatchContext(ctx, "user_limit")
|
||||
stdout.ExpectMatchContext(ctx, "not_entitled")
|
||||
stdout.ExpectMatch(ctx, "user_limit")
|
||||
stdout.ExpectMatch(ctx, "not_entitled")
|
||||
})
|
||||
t.Run("JSON", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
Reference in New Issue
Block a user