mirror of
https://github.com/minio/minio
synced 2024-10-14 11:52:56 +00:00
avoid data race for testing (#19635)
This commit is contained in:
parent
3cf8a7c888
commit
6bb10a81a6
|
@ -470,7 +470,7 @@ func testStreamCancel(t *testing.T, local, remote *Manager) {
|
|||
Handle: func(ctx context.Context, payload []byte, request <-chan []byte, resp chan<- []byte) *RemoteErr {
|
||||
<-ctx.Done()
|
||||
serverCanceled <- struct{}{}
|
||||
t.Log(GetCaller(ctx).Name, "Server Context canceled")
|
||||
fmt.Println(GetCaller(ctx).Name, "Server Context canceled")
|
||||
return nil
|
||||
},
|
||||
OutCapacity: 1,
|
||||
|
@ -480,7 +480,7 @@ func testStreamCancel(t *testing.T, local, remote *Manager) {
|
|||
Handle: func(ctx context.Context, payload []byte, request <-chan []byte, resp chan<- []byte) *RemoteErr {
|
||||
<-ctx.Done()
|
||||
serverCanceled <- struct{}{}
|
||||
t.Log(GetCaller(ctx).Name, "Server Context canceled")
|
||||
fmt.Println(GetCaller(ctx).Name, "Server Context canceled")
|
||||
return nil
|
||||
},
|
||||
OutCapacity: 1,
|
||||
|
|
Loading…
Reference in a new issue