Skip to content

Commit 16d6a51

Browse files
committed
Fixing specs after upgrading datadog
1 parent a613928 commit 16d6a51

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

Gopkg.lock

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
[[constraint]]
2424
name = "github.com/DataDog/datadog-go"
25-
version = "2.2.0"
25+
revision = "f6e76752dd64e7329d6b314f92a08748a78c2250"
2626

2727
[[constraint]]
2828
name = "github.com/Shopify/sarama"

scopedstatsd/client_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ package scopedstatsd
33
import (
44
"testing"
55

6+
"github.com/pkg/errors"
7+
68
"github.com/stretchr/testify/assert"
79
)
810

911
func TestEnsure(t *testing.T) {
1012
var theNilOne Client = nil
1113
ensured := Ensure(theNilOne)
1214
assert.NotNil(t, ensured)
13-
assert.NoError(t, ensured.Count("hi", 0, nil, 1.0))
15+
assert.Error(t, errors.New("statsd client is nil"), ensured.Count("hi", 0, nil, 1.0))
1416
}
1517

1618
func TestDoesSomething(t *testing.T) {
@@ -49,7 +51,7 @@ func TestDoesSomething(t *testing.T) {
4951
},
5052
}
5153
for _, fn := range testFuncs {
52-
assert.NoError(t, fn())
54+
assert.Error(t, errors.New("statsd client is nil"), fn())
5355
}
5456
})
5557
}

vendor/github.com/DataDog/datadog-go/statsd/statsd.go

+16-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)