Skip to content

Commit

Permalink
address coderabbit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wdbaruni committed Nov 21, 2024
1 parent 383a580 commit b9ffe3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lib/watcher/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ func (s *ManagerTestSuite) TestLookup() {
s.Require().NoError(err)

// Lookup existing watcher
retrievedWatcher, err := s.manager.Lookup(watcherID)
retrievedWatcher, err := s.manager.Lookup(context.Background(), watcherID)
s.Require().NoError(err)
s.Require().NotNil(retrievedWatcher)
s.Equal(watcherID, retrievedWatcher.ID())
s.Equal(w, retrievedWatcher)
}

func (s *ManagerTestSuite) TestLookupNonExistentWatcher() {
_, err := s.manager.Lookup("non-existent")
_, err := s.manager.Lookup(context.Background(), "non-existent")
s.Require().Error(err)
s.Contains(err.Error(), "watcher not found")
}
Expand Down

0 comments on commit b9ffe3d

Please sign in to comment.