diff options
author | Kegan Dougal <kegan@matrix.org> | 2020-08-07 17:58:44 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2020-08-07 17:58:44 +0100 |
commit | 366fd975c8ad9ad654845d562d9b87749f1f8e37 (patch) | |
tree | 84fb2b1ce1e0b4b09a8e24200c322097c495b72b /keyserver | |
parent | f371783da765f96fc3764091e95fb8cb8004e208 (diff) |
Fix unit tests
Diffstat (limited to 'keyserver')
-rw-r--r-- | keyserver/internal/device_list_update_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyserver/internal/device_list_update_test.go b/keyserver/internal/device_list_update_test.go index 50e42763..b07148bb 100644 --- a/keyserver/internal/device_list_update_test.go +++ b/keyserver/internal/device_list_update_test.go @@ -102,9 +102,9 @@ func (t *roundTripper) RoundTrip(req *http.Request) (*http.Response, error) { func newFedClient(tripper func(*http.Request) (*http.Response, error)) *gomatrixserverlib.FederationClient { _, pkey, _ := ed25519.GenerateKey(nil) fedClient := gomatrixserverlib.NewFederationClient( - gomatrixserverlib.ServerName("example.test"), gomatrixserverlib.KeyID("ed25519:test"), pkey, + gomatrixserverlib.ServerName("example.test"), gomatrixserverlib.KeyID("ed25519:test"), pkey, true, ) - fedClient.Client = *gomatrixserverlib.NewClientWithTransport(&roundTripper{tripper}) + fedClient.Client = *gomatrixserverlib.NewClientWithTransport(true, &roundTripper{tripper}) return fedClient } |