Skip to content

Commit

Permalink
integration: reset global state back to original value after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zimnx committed Nov 23, 2020
1 parent f2a45c5 commit dba9e70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controllers/cluster/main_integration_test.go
Expand Up @@ -65,6 +65,9 @@ func TestMain(m *testing.M) {
}()

options.GetOperatorOptions().Image = "scylladb/scylla-operator"
defer func() {
options.GetOperatorOptions().Image = ""
}()

reconciler, err := cluster.New(ctx, testEnv.Manager, logger)
if err != nil {
Expand Down

0 comments on commit dba9e70

Please sign in to comment.