Skip to content

Commit

Permalink
fix build and test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tychoish committed Jul 2, 2017
1 parent c2a2d9c commit 7d6f460
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions send/buffered_test.go
Expand Up @@ -56,10 +56,12 @@ func (s *BufferedSenderSuite) TestConstructor() {
func (s *BufferedSenderSuite) TestSendingSingleMessage() {
m, ok := s.sender.GetMessageSafe()
s.False(ok)
s.Nil(m)

s.buffs.Send(message.NewDefaultMessage(level.Warning, "hello"))
m, ok = s.sender.GetMessageSafe()
s.False(ok)
s.Nil(m)

time.Sleep(s.dur)
m = s.sender.GetMessage()
Expand Down
6 changes: 3 additions & 3 deletions send/slack_test.go
Expand Up @@ -166,9 +166,9 @@ func (s *SlackSuite) TestFieldsMessageTypeIntegration() {
s.True(opts.Fields)
s.False(opts.BasicMetadata)
opts.FieldsSet = map[string]struct{}{
"msg": struct{}{},
"other": struct{}{},
"foo": struct{}{},
"message": struct{}{},
"other": struct{}{},
"foo": struct{}{},
}

params := opts.getParams(message.NewDefaultMessage(level.Alert, "foo"))
Expand Down

0 comments on commit 7d6f460

Please sign in to comment.