mirror of
https://github.com/minio/minio.git
synced 2024-12-26 15:15:55 -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 {
|
Handle: func(ctx context.Context, payload []byte, request <-chan []byte, resp chan<- []byte) *RemoteErr {
|
||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
serverCanceled <- struct{}{}
|
serverCanceled <- struct{}{}
|
||||||
t.Log(GetCaller(ctx).Name, "Server Context canceled")
|
fmt.Println(GetCaller(ctx).Name, "Server Context canceled")
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
OutCapacity: 1,
|
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 {
|
Handle: func(ctx context.Context, payload []byte, request <-chan []byte, resp chan<- []byte) *RemoteErr {
|
||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
serverCanceled <- struct{}{}
|
serverCanceled <- struct{}{}
|
||||||
t.Log(GetCaller(ctx).Name, "Server Context canceled")
|
fmt.Println(GetCaller(ctx).Name, "Server Context canceled")
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
OutCapacity: 1,
|
OutCapacity: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user