@@ -51,7 +51,7 @@ func Test_Channel_Unbuffered(t *testing.T) {
51
51
cr .Execute ()
52
52
53
53
crSend := NewCoroutine (Background (), func (ctx Context ) error {
54
- c .SendNonblocking (ctx , 42 )
54
+ c .SendNonblocking (42 )
55
55
56
56
return nil
57
57
})
@@ -79,7 +79,7 @@ func Test_Channel_Unbuffered(t *testing.T) {
79
79
require .True (t , cr .Blocked (), "coroutine should be blocked" )
80
80
81
81
crSend := NewCoroutine (Background (), func (ctx Context ) error {
82
- c .SendNonblocking (ctx , 42 )
82
+ c .SendNonblocking (42 )
83
83
84
84
return nil
85
85
})
@@ -177,7 +177,7 @@ func Test_Channel_Unbuffered(t *testing.T) {
177
177
name : "SendNonblocking_DoesNotBlock" ,
178
178
fn : func (t * testing.T , c * channel [int ]) {
179
179
cr := NewCoroutine (Background (), func (ctx Context ) error {
180
- r := c .SendNonblocking (ctx , 42 )
180
+ r := c .SendNonblocking (42 )
181
181
182
182
require .False (t , r )
183
183
@@ -194,7 +194,7 @@ func Test_Channel_Unbuffered(t *testing.T) {
194
194
name : "ReceiveNonblocking_DoesNotBlock" ,
195
195
fn : func (t * testing.T , c * channel [int ]) {
196
196
cr := NewCoroutine (Background (), func (ctx Context ) error {
197
- r := c .SendNonblocking (ctx , 42 )
197
+ r := c .SendNonblocking (42 )
198
198
199
199
require .False (t , r )
200
200
@@ -225,7 +225,7 @@ func Test_Channel_Unbuffered(t *testing.T) {
225
225
})
226
226
}
227
227
228
- s .Execute (ctx )
228
+ s .Execute ()
229
229
require .Equal (t , 0 , r )
230
230
231
231
for i := 0 ; i < 10 ; i ++ {
@@ -237,7 +237,7 @@ func Test_Channel_Unbuffered(t *testing.T) {
237
237
}
238
238
239
239
for s .RunningCoroutines () > 0 {
240
- s .Execute (ctx )
240
+ s .Execute ()
241
241
}
242
242
243
243
require .Equal (t , 10 , r )
0 commit comments