Update mockClient to match new interface

This commit is contained in:
David Robertson 2023-09-26 13:35:24 +01:00
parent 7111ab1d9f
commit a28e419d5d
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -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)
}