Skip to content

Commit

Permalink
test: fix e2e test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory-Z committed Aug 31, 2022
1 parent ba010ea commit 37d01a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/apps/v2alpha1/emqx_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (r *EMQXReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
}

if deploy := generateDeployment(instance); deploy != nil {
if instance.Status.IsCoreUpdating() {
if instance.Status.IsCoreUpdating() && instance.Status.OriginalImage != "" {
deploy.Spec.Template.Spec.Containers[0].Image = instance.Status.OriginalImage
}
resources = append(resources, deploy)
Expand Down
2 changes: 1 addition & 1 deletion e2e/v2alpha1/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestAPIs(t *testing.T) {
}

var _ = BeforeSuite(func() {
timeout = time.Minute * 7
timeout = time.Minute * 5
interval = time.Second * 1

Expect(os.Setenv("USE_EXISTING_CLUSTER", "true")).To(Succeed())
Expand Down

0 comments on commit 37d01a6

Please sign in to comment.