Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
live-wire committed Jun 1, 2022
1 parent aad80e7 commit d54f057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/flinkcluster/flinkcluster_updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func TestClusterStatus(t *testing.T) {
}

var updater = &ClusterStatusUpdater{log: log.Log, observed: observed}
cluster := v1beta1.FlinkCluster{Status: oldStatus}
cluster := v1beta1.FlinkCluster{Status: oldStatus, Spec: v1beta1.FlinkClusterSpec{TaskManager: &v1beta1.TaskManagerSpec{DeploymentType: v1beta1.DeploymentTypeStatefulset}}}
newStatus := updater.deriveClusterStatus(&cluster, &observed)
assert.Assert(t, updater.isStatusChanged(oldStatus, newStatus))
assert.Equal(t, newStatus.State, v1beta1.ClusterStateRunning)
Expand Down

0 comments on commit d54f057

Please sign in to comment.