summaryrefslogtreecommitdiffhomepage
path: root/cmd/k8s-operator/tsrecorder_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/k8s-operator/tsrecorder_test.go')
-rw-r--r--cmd/k8s-operator/tsrecorder_test.go3
1 files changed, 3 insertions, 0 deletions
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) {