Skip to content

Commit

Permalink
Fixing specs after upgrading datadog
Browse files Browse the repository at this point in the history
  • Loading branch information
prudhvi committed Jul 6, 2019
1 parent 91d0151 commit c0f2e20
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
5 changes: 2 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

[[constraint]]
name = "github.com/DataDog/datadog-go"
version = "2.2.0"
revision = "f6e76752dd64e7329d6b314f92a08748a78c2250"

[[constraint]]
name = "github.com/Shopify/sarama"
Expand Down
6 changes: 4 additions & 2 deletions scopedstatsd/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ package scopedstatsd
import (
"testing"

"github.com/pkg/errors"

"github.com/stretchr/testify/assert"
)

func TestEnsure(t *testing.T) {
var theNilOne Client = nil
ensured := Ensure(theNilOne)
assert.NotNil(t, ensured)
assert.NoError(t, ensured.Count("hi", 0, nil, 1.0))
assert.Error(t, errors.New("statsd client is nil"), ensured.Count("hi", 0, nil, 1.0))
}

func TestDoesSomething(t *testing.T) {
Expand Down Expand Up @@ -49,7 +51,7 @@ func TestDoesSomething(t *testing.T) {
},
}
for _, fn := range testFuncs {
assert.NoError(t, fn())
assert.Error(t, errors.New("statsd client is nil"), fn())
}
})
}
Expand Down
22 changes: 16 additions & 6 deletions vendor/github.com/DataDog/datadog-go/statsd/statsd.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c0f2e20

Please sign in to comment.