Skip to content

Commit

Permalink
Merge pull request #676 from jgwest/gitopsrvce-767-fix-unit-test-fail…
Browse files Browse the repository at this point in the history
…ure-oct-2023

GITOPSRVCE-767: fix interimittent failure in workspace_resource_event_loop_test.go
  • Loading branch information
openshift-ci[bot] authored Oct 12, 2023
2 parents 696f2eb + bdb510e commit 937de78
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions backend/eventloop/workspace_resource_event_loop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,11 @@ var _ = Describe("Test Workspace Resource Loop", func() {

Expect(shouldRetry).To(BeTrue())
Expect(err).To(HaveOccurred())
expectedErr := "unable to reconcile shared managed env: context cancelled in GetOrCreateSharedManagedEnv"
Expect(err).To(Equal(resourceLoopErr(expectedErr)))

Expect(err.Error()).To(SatisfyAny(
Equal(resourceLoopErr("unable to reconcile shared managed env: context cancelled in GetOrCreateSharedManagedEnv").Error()),
ContainSubstring("error on retrieving GetClusterUserByUsername: context deadline exceeded")))

})
})

Expand Down Expand Up @@ -371,8 +374,11 @@ var _ = Describe("Test Workspace Resource Loop", func() {

Expect(shouldRetry).To(BeTrue())
Expect(err).To(HaveOccurred())
expectedErr := "unable to reconcile repository credential. Error: context cancelled in ReconcileRepositoryCredential"
Expect(err).To(Equal(resourceLoopErr(expectedErr)))

Expect(err.Error()).To(SatisfyAny(
Equal(resourceLoopErr("unable to reconcile repository credential. Error: context cancelled in ReconcileRepositoryCredential").Error()),
ContainSubstring("error on retrieving GetClusterUserByUsername: context deadline exceeded")))

})
})
})
Expand Down

0 comments on commit 937de78

Please sign in to comment.