diff --git a/cmd/k8s-operator/tsrecorder_test.go b/cmd/k8s-operator/tsrecorder_test.go index 72b8ffd69..4928a4769 100644 --- a/cmd/k8s-operator/tsrecorder_test.go +++ b/cmd/k8s-operator/tsrecorder_test.go @@ -87,6 +87,9 @@ func TestRecorder(t *testing.T) { expectMissing[corev1.ServiceAccount](t, fc, tsNamespace, updated.Name) + // reset the service account name + updated.Spec.StatefulSet.Pod.ServiceAccountName = "" + }) t.Run("invalid spec gives an error condition", func(t *testing.T) {