From 8652695f3b4e3937f549f5644cc9ce1a1912e8ab Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Mon, 19 Oct 2015 22:51:17 -0700 Subject: [PATCH] fixed test this test missed updating when we changed the New* api --- bps_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bps_test.go b/bps_test.go index 25e6a96..6365f46 100644 --- a/bps_test.go +++ b/bps_test.go @@ -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) + } } }