remove unused code

pull/6629/head
Matthew Hooker 8 years ago
parent 3f1a9766f4
commit 8a604114ef
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1

@ -124,19 +124,11 @@ func Test_flushes(t *testing.T) {
}
func Test_KeyIntervalNotGiven(t *testing.T) {
sendCodes := func(c []string) error {
codes = c
return nil
}
d := NewPCXTDriver(sendCodes, -1, time.Duration(0))
d := NewPCXTDriver(nil, -1, time.Duration(0))
assert.Equal(t, d.interval, time.Duration(100)*time.Millisecond)
}
func Test_KeyIntervalGiven(t *testing.T) {
sendCodes := func(c []string) error {
codes = c
return nil
}
d := NewPCXTDriver(sendCodes, -1, time.Duration(5000)*time.Millisecond)
d := NewPCXTDriver(nil, -1, time.Duration(5000)*time.Millisecond)
assert.Equal(t, d.interval, time.Duration(5000)*time.Millisecond)
}

Loading…
Cancel
Save