Try fix unit tests

This commit is contained in:
Eric Eastwood 2021-01-16 01:07:52 -06:00
parent fe7acc63fa
commit 6fd8459447
2 changed files with 9 additions and 1 deletions

View file

@ -367,7 +367,7 @@ func newTestSyncRequest(userID, deviceID string, since types.StreamingToken) typ
Timeout: 1 * time.Minute,
Since: since,
WantFullState: false,
Limit: 20,
Filter: gomatrixserverlib.DefaultFilter(),
Log: util.GetLogger(context.TODO()),
Context: context.TODO(),
}

View file

@ -142,6 +142,14 @@ func (p *PDUStreamProvider) IncrementalSync(
}
}
logrus.WithFields(logrus.Fields{
"stateFilter": fmt.Sprintf("%+v", stateFilter),
"from": from,
"to": to,
"req.WantFullState": req.WantFullState,
"stateDeltas": stateDeltas,
}).Info("IncrementalSync")
for _, roomID := range joinedRooms {
req.Rooms[roomID] = gomatrixserverlib.Join
}