diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2021-01-22 16:09:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 16:09:05 +0000 |
commit | 6757b67a321c684769ad022351541c7c6417c693 (patch) | |
tree | 261accd97b834dfb42b9bbade97a4e3c2067e3d2 /keyserver | |
parent | 93942f8ab62ffdb55888d5d35adef6fe73e3ea59 (diff) |
NewClient and NewFederationClient updates (#1730)
* Use matrix-org/gomatrixserverlib#252
* Add missing WithSkipVerify to test
* Functions instead
* Update gomatrixserverlib to matrix-org/gomatrixserverlib#252
* Fix disabling TLS validation
Diffstat (limited to 'keyserver')
-rw-r--r-- | keyserver/internal/device_list_update_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/keyserver/internal/device_list_update_test.go b/keyserver/internal/device_list_update_test.go index 9c4cc116..eab2a78d 100644 --- a/keyserver/internal/device_list_update_test.go +++ b/keyserver/internal/device_list_update_test.go @@ -106,9 +106,11 @@ 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, true, + gomatrixserverlib.ServerName("example.test"), gomatrixserverlib.KeyID("ed25519:test"), pkey, + ) + fedClient.Client = *gomatrixserverlib.NewClient( + gomatrixserverlib.WithTransport(&roundTripper{tripper}), ) - fedClient.Client = *gomatrixserverlib.NewClientWithTransport(&roundTripper{tripper}) return fedClient } |