Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
andy9775 committed Sep 9, 2018
1 parent 3d627b7 commit e21c65e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion strategies/once/once_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions strategies/sozu/sozu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions strategies/standard/standard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e21c65e

Please sign in to comment.