mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Update mockClient to match new interface
This commit is contained in:
parent
7111ab1d9f
commit
a28e419d5d
@ -1188,6 +1188,9 @@ type mockClient struct {
|
||||
fn func(authHeader, since string) (*SyncResponse, int, error)
|
||||
}
|
||||
|
||||
func (c *mockClient) Versions(ctx context.Context) ([]string, error) {
|
||||
return []string{"v1.1"}, nil
|
||||
}
|
||||
func (c *mockClient) DoSyncV2(ctx context.Context, authHeader, since string, isFirst, toDeviceOnly bool) (*SyncResponse, int, error) {
|
||||
return c.fn(authHeader, since)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user