Skip to content

Commit

Permalink
Resolve dependency issues and update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton committed Jun 18, 2018
1 parent a05cc68 commit fac9413
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 3 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 @@ -12,7 +12,7 @@

[[constraint]]
name = "github.com/apache/thrift"
version = "0.11.0"
branch = "master"

[[constraint]]
name = "github.com/aws/aws-sdk-go"
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/mysql/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestMysqlGetDSNTag(t *testing.T) {
},
{
"tcp(localhost)/",
"localhost",
"localhost:3306",
},
{
"root:passwd@tcp(192.168.1.1:3306)/?tls=false",
Expand Down
5 changes: 2 additions & 3 deletions plugins/outputs/kinesis/kinesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestPartitionKey(t *testing.T) {
partitionKey := k.getPartitionKey(testPoint)
u, err := uuid.FromString(partitionKey)
assert.Nil(err, "Issue parsing UUID")
assert.Equal(uint(4), u.Version(), "PartitionKey should be UUIDv4")
assert.Equal(byte(4), u.Version(), "PartitionKey should be UUIDv4")

k = KinesisOutput{
PartitionKey: "-",
Expand All @@ -72,6 +72,5 @@ func TestPartitionKey(t *testing.T) {
partitionKey = k.getPartitionKey(testPoint)
u, err = uuid.FromString(partitionKey)
assert.Nil(err, "Issue parsing UUID")
assert.Equal(uint(4), u.Version(), "PartitionKey should be UUIDv4")

assert.Equal(byte(4), u.Version(), "PartitionKey should be UUIDv4")
}

0 comments on commit fac9413

Please sign in to comment.