Update sync3/conn_test.go

Co-authored-by: David Robertson <davidr@element.io>
This commit is contained in:
kegsay 2023-04-13 15:18:46 +01:00 committed by GitHub
parent b0316ce798
commit e65b9107bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ func TestConnBlocking(t *testing.T) {
ch := make(chan string)
c := NewConn(connID, &connHandlerMock{func(ctx context.Context, cid ConnID, req *Request, init bool) (*Response, error) {
if req.Lists["a"].Sort[0] == "hi" {
sentFirstWg.Done() // tell the 2nd request is can start
sentFirstWg.Done() // tell the 2nd request it can start
time.Sleep(20 * time.Millisecond) // simulate a long processing time
}
ch <- req.Lists["a"].Sort[0]