Update vendoring to dep from gdm (#4314)

This commit is contained in:
Greg
2018-06-19 12:55:38 -06:00
committed by Daniel Nelson
parent d7c756e9ff
commit 1bd41ef3ce
18 changed files with 1245 additions and 121 deletions

View File

@@ -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: "-",
@@ -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")
}

View File

@@ -184,7 +184,7 @@ func (m *MQTT) publish(topic string, body []byte) error {
func (m *MQTT) createOpts() (*paho.ClientOptions, error) {
opts := paho.NewClientOptions()
opts.KeepAlive = 0 * time.Second
opts.KeepAlive = 0
if m.Timeout.Duration < time.Second {
m.Timeout.Duration = 5 * time.Second