mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Update sync3/conn_test.go
Co-authored-by: David Robertson <davidr@element.io>
This commit is contained in:
parent
b0316ce798
commit
e65b9107bf
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user