diff options
Diffstat (limited to 'rutina_test.go')
-rwxr-xr-x | rutina_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rutina_test.go b/rutina_test.go index 361d5eb..077f68e 100755 --- a/rutina_test.go +++ b/rutina_test.go @@ -8,7 +8,10 @@ import ( ) func TestSuccess(t *testing.T) { - r, _ := New() + r, _ := New( + WithStdLogger(), + WithContext(context.Background()), + ) counter := 0 f := func(name string, ttl time.Duration) error { counter++ @@ -37,7 +40,7 @@ func TestSuccess(t *testing.T) { } func TestError(t *testing.T) { - r, _ := New() + r, _ := New(WithCancelByError()) f := func(name string, ttl time.Duration) error { <-time.After(ttl) t.Log(name) |