fixed test
this test missed updating when we changed the New* api
This commit is contained in:
parent
d8a8452961
commit
8652695f3b
@ -21,9 +21,12 @@ func TestSimple(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestBadResolution(t *testing.T) {
|
func TestBadResolution(t *testing.T) {
|
||||||
_, err := New(1 * time.Hour)
|
var i uint
|
||||||
|
for i = 0; i < minResolution; i++ {
|
||||||
|
_, err := NewPrecise(1*time.Second, i)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatal("expected an error, got nil")
|
t.Fatalf("expected an error, got nil for %d", i)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user