Skip to content

Commit

Permalink
improve tests again
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Oct 2, 2024
1 parent 3483efc commit d21b97a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/vt/vtctl/reparentutil/emergency_reparenter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ func TestEmergencyReparenter_reparentShardLocked(t *testing.T) {
err := erp.reparentShardLocked(ctx, ev, tt.keyspace, tt.shard, tt.emergencyReparentOps)
if tt.shouldErr {
assert.Error(t, err)
assert.Contains(t, err.Error(), tt.errShouldContain)
assert.ErrorContains(t, err, tt.errShouldContain)
return
}

Expand Down
2 changes: 1 addition & 1 deletion go/vt/vtctl/reparentutil/planned_reparenter_flaky_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3396,7 +3396,7 @@ func TestPlannedReparenter_reparentShardLocked(t *testing.T) {
if tt.shouldErr {
assert.Error(t, err)
if tt.errShouldContain != "" {
assert.Contains(t, err.Error(), tt.errShouldContain)
assert.ErrorContains(t, err, tt.errShouldContain)
}
return
}
Expand Down

0 comments on commit d21b97a

Please sign in to comment.