diff options
author | Alexander Kiryukhin <alexander@kiryukhin.su> | 2019-01-17 07:54:39 +0300 |
---|---|---|
committer | Alexander Kiryukhin <alexander@kiryukhin.su> | 2019-01-17 07:54:39 +0300 |
commit | c5776ba6a3d8303650208ee8abc8f63cadf5127a (patch) | |
tree | cf92f3d64a46f7167b9857688e5344554b2a8d69 /rutina_test.go | |
parent | d64ca3bd06c6a2c702f3604d95658566907a9beb (diff) |
Many changesv0.2.0
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) |