Skip to content

Commit

Permalink
test: Add resync period in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyno-zeta committed Mar 28, 2023
1 parent 8ee42e7 commit bf8143c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/postgresql/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ var _ = BeforeSuite(func() {
Expect(err).NotTo(HaveOccurred())
Expect(k8sClient).NotTo(BeNil())

resyncPeriod := 10 * time.Second
k8sManager, err := ctrl.NewManager(cfg, ctrl.Options{
Scheme: scheme.Scheme,
Scheme: scheme.Scheme,
SyncPeriod: &resyncPeriod,
})
Expect(err).ToNot(HaveOccurred())
Expect(k8sManager).ToNot(BeNil())
Expand Down

0 comments on commit bf8143c

Please sign in to comment.