fixed test

this test missed updating when we changed the New* api
This commit is contained in:
Stephen McQuay 2015-10-19 22:51:17 -07:00
parent d8a8452961
commit 8652695f3b
1 changed files with 6 additions and 3 deletions

View File

@ -21,9 +21,12 @@ func TestSimple(t *testing.T) {
}
func TestBadResolution(t *testing.T) {
_, err := New(1 * time.Hour)
if err == nil {
t.Fatal("expected an error, got nil")
var i uint
for i = 0; i < minResolution; i++ {
_, err := NewPrecise(1*time.Second, i)
if err == nil {
t.Fatalf("expected an error, got nil for %d", i)
}
}
}