mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
Race fix
This commit is contained in:
parent
bb85f48f6b
commit
c7dcfe070f
|
|
@ -230,6 +230,9 @@ func TestQuerySharedUsers(t *testing.T) {
|
||||||
|
|
||||||
MustWriteOutputEvent(t, producer, mustMakeMembershipEvent(t, "!foo4:bar", "@alice:localhost", "join"))
|
MustWriteOutputEvent(t, producer, mustMakeMembershipEvent(t, "!foo4:bar", "@alice:localhost", "join"))
|
||||||
|
|
||||||
|
// we don't know when the server has processed the events
|
||||||
|
time.Sleep(10 * time.Millisecond)
|
||||||
|
|
||||||
testCases := []struct {
|
testCases := []struct {
|
||||||
req api.QuerySharedUsersRequest
|
req api.QuerySharedUsersRequest
|
||||||
wantRes api.QuerySharedUsersResponse
|
wantRes api.QuerySharedUsersResponse
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue