Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-carvalho committed Jul 9, 2020
1 parent ae43346 commit f113652
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions watcher/watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ var _ = Describe("Watcher", func() {
w.Run = false
}, mockDb, nil, nil)

opManager := models.NewOperationManager(configYaml.Name, mockRedisClient, logger)
testing.MockGetCurrentOperationKey(opManager, mockRedisClient, nil)

mockRedisClient.EXPECT().TxPipeline().Return(mockPipeline)
mockPipeline.EXPECT().Del(models.GetInvalidRoomsKey(configYaml.Name))
mockPipeline.EXPECT().Exec()
Expand Down

0 comments on commit f113652

Please sign in to comment.