diff --git a/lib/integrations/awsoidc/eks_enroll_clusters_test.go b/lib/integrations/awsoidc/eks_enroll_clusters_test.go index f123cc07b7615..090203bd93d1c 100644 --- a/lib/integrations/awsoidc/eks_enroll_clusters_test.go +++ b/lib/integrations/awsoidc/eks_enroll_clusters_test.go @@ -171,7 +171,7 @@ func TestEnrollEKSClusters(t *testing.T) { responseCheck: func(t *testing.T, response *EnrollEKSClusterResponse) { require.Len(t, response.Results, 1) require.Equal(t, "EKS1", response.Results[0].ClusterName) - require.Empty(t, response.Results[0].Error) + require.NoError(t, response.Results[0].Error) require.NotEmpty(t, response.Results[0].ResourceId) }, }, @@ -187,7 +187,7 @@ func TestEnrollEKSClusters(t *testing.T) { return strings.Compare(a.ClusterName, b.ClusterName) }) require.Equal(t, "EKS1", response.Results[0].ClusterName) - require.Empty(t, response.Results[0].Error) + require.NoError(t, response.Results[0].Error) require.NotEmpty(t, response.Results[0].ResourceId) require.Equal(t, "EKS2", response.Results[1].ClusterName) require.Empty(t, response.Results[1].Error) diff --git a/lib/services/local/access_list_test.go b/lib/services/local/access_list_test.go index c0a41478fbb61..97bcdd5eb44ae 100644 --- a/lib/services/local/access_list_test.go +++ b/lib/services/local/access_list_test.go @@ -842,7 +842,7 @@ func TestAccessListReviewCRUD(t *testing.T) { // Verify that access lists reviews are gone. _, _, err = service.ListAccessListReviews(ctx, accessList1.GetName(), 0, "") - require.Empty(t, err) + require.NoError(t, err) } func TestAccessListRequiresEqual(t *testing.T) { diff --git a/lib/services/role_test.go b/lib/services/role_test.go index 9360d601bd5d9..1426139be9149 100644 --- a/lib/services/role_test.go +++ b/lib/services/role_test.go @@ -1090,7 +1090,7 @@ func TestValidateRole(t *testing.T) { require.NoError(t, err, trace.DebugReport(err)) if len(tc.expectWarnings) == 0 { - require.Empty(t, warning) + require.NoError(t, warning) } for _, msg := range tc.expectWarnings { require.ErrorContains(t, warning, msg)