diff --git a/lib/auth/auth_with_roles_test.go b/lib/auth/auth_with_roles_test.go index 9ab0ce9c99ff..556223eb844d 100644 --- a/lib/auth/auth_with_roles_test.go +++ b/lib/auth/auth_with_roles_test.go @@ -1246,7 +1246,7 @@ func TestClusterNetworkingCloudUpdates(t *testing.T) { err = client.SetClusterNetworkingConfig(ctx, tc.clusterNetworkingConfig) if err != nil { require.NotEmpty(t, tc.expectSetErr) - require.ErrorContains(t, err, fmt.Sprintf("%q", tc.expectSetErr)) + require.ErrorContains(t, err, tc.expectSetErr) } else { require.Empty(t, tc.expectSetErr) }