mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05: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 New Issue
Block a user