From e21c65e0c1cab1d46094aabb845e1a0e009cf598 Mon Sep 17 00:00:00 2001 From: Andy Chrzaszcz Date: Sat, 8 Sep 2018 22:32:06 -0400 Subject: [PATCH] fix failing test --- strategies/once/once_test.go | 2 +- strategies/sozu/sozu_test.go | 4 ++-- strategies/standard/standard_test.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/strategies/once/once_test.go b/strategies/once/once_test.go index 79a362d..c72dd30 100644 --- a/strategies/once/once_test.go +++ b/strategies/once/once_test.go @@ -261,7 +261,7 @@ func TestCancellableContextLoadMany(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) // invoke - go cancel() + cancel() thunk := strategy.LoadMany(ctx, key) thunk() time.Sleep(100 * time.Millisecond) diff --git a/strategies/sozu/sozu_test.go b/strategies/sozu/sozu_test.go index 3cb57b3..581a6cc 100644 --- a/strategies/sozu/sozu_test.go +++ b/strategies/sozu/sozu_test.go @@ -593,7 +593,7 @@ func TestCancellableContextLoad(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) // invoke - go cancel() + cancel() thunk := strategy.Load(ctx, key) thunk() time.Sleep(100 * time.Millisecond) @@ -626,7 +626,7 @@ func TestCancellableContextLoadMany(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) // invoke - go cancel() + cancel() thunk := strategy.LoadMany(ctx, key) thunk() time.Sleep(100 * time.Millisecond) diff --git a/strategies/standard/standard_test.go b/strategies/standard/standard_test.go index ef39709..5a08a59 100644 --- a/strategies/standard/standard_test.go +++ b/strategies/standard/standard_test.go @@ -482,7 +482,7 @@ func TestCancellableContextLoad(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) // invoke - go cancel() + cancel() thunk := strategy.Load(ctx, key) thunk() time.Sleep(100 * time.Millisecond) @@ -515,7 +515,7 @@ func TestCancellableContextLoadMany(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) // invoke - go cancel() + cancel() thunk := strategy.LoadMany(ctx, key) thunk() time.Sleep(100 * time.Millisecond)