Skip to content

Commit

Permalink
fixing sensu test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Megarry committed Apr 13, 2017
1 parent a053a16 commit cebd9cf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7756,7 +7756,6 @@ stream
.message('message')
.details('details')
.crit(lambda: TRUE)
.sensu()
`

if _, err := cli.CreateTask(client.CreateTaskOptions{
Expand Down
2 changes: 1 addition & 1 deletion services/alert/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ func (s *Service) createHandlerFromSpec(spec HandlerSpec) (handler, error) {
if err != nil {
return handler{}, err
}
h, err := s.SensuService.Handler(c, s.logger)
h, err = s.SensuService.Handler(c, s.logger)
if err != nil {
return handler{}, err
}
Expand Down
1 change: 0 additions & 1 deletion services/sensu/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ func (h *handler) Handle(event alert.Event) {
return
}
sourceStr := buf.String()
buf.Reset()

if err := h.s.Alert(
event.State.ID,
Expand Down

0 comments on commit cebd9cf

Please sign in to comment.