Skip to content

Commit a03f404

Browse files
committed
Fix test description and set leaderelection==true
1 parent d8650df commit a03f404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/internal/controller/controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ var _ = Describe("controller", func() {
12171217
cfg, err := testenv.Start()
12181218
Expect(err).NotTo(HaveOccurred())
12191219
m, err := manager.New(cfg, manager.Options{
1220-
LeaderElection: false,
1220+
LeaderElection: true,
12211221
})
12221222
Expect(err).NotTo(HaveOccurred())
12231223

@@ -1261,7 +1261,7 @@ var _ = Describe("controller", func() {
12611261
wg.Wait()
12621262
})
12631263

1264-
It("should not race with Start and only start sources once", func() {
1264+
It("should not cause a data race when called concurrently with Start and only start sources once", func() {
12651265
ctx, cancel := context.WithCancel(context.Background())
12661266
defer cancel()
12671267

0 commit comments

Comments
 (0)