File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,10 @@ func TestUntilWithTestFunctionError(t *testing.T) {
91
91
92
92
func TestUntilWithContext (t * testing.T ) {
93
93
a := assert .New (t )
94
+ start := time .Now ()
94
95
ctx , canFunc := context .WithTimeout (context .Background (), 100 * time .Millisecond )
95
96
defer canFunc ()
96
97
97
- start := time .Now ()
98
98
out , err := async .UntilWithContext (ctx , func (ctx context.Context ) bool {
99
99
select {
100
100
case <- ctx .Done ():
Original file line number Diff line number Diff line change @@ -81,10 +81,10 @@ func TestWhileWithFunctionError(t *testing.T) {
81
81
82
82
func TestWhileWithContext (t * testing.T ) {
83
83
a := assert .New (t )
84
+ start := time .Now ()
84
85
ctx , canFunc := context .WithTimeout (context .Background (), 100 * time .Millisecond )
85
86
defer canFunc ()
86
87
87
- start := time .Now ()
88
88
out , err := async .WhileWithContext (ctx , func (ctx context.Context ) bool {
89
89
select {
90
90
case <- ctx .Done ():
You can’t perform that action at this time.
0 commit comments