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 /federationapi | |
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 'federationapi')
-rw-r--r-- | federationapi/federationapi_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/federationapi/federationapi_test.go b/federationapi/federationapi_test.go index 923cd0ec..b97876d3 100644 --- a/federationapi/federationapi_test.go +++ b/federationapi/federationapi_test.go @@ -36,7 +36,10 @@ func TestRoomsV3URLEscapeDoNot404(t *testing.T) { defer cancel() serverName := gomatrixserverlib.ServerName(strings.TrimPrefix(baseURL, "https://")) - fedCli := gomatrixserverlib.NewFederationClient(serverName, cfg.Global.KeyID, cfg.Global.PrivateKey, true) + fedCli := gomatrixserverlib.NewFederationClient( + serverName, cfg.Global.KeyID, cfg.Global.PrivateKey, + gomatrixserverlib.WithSkipVerify(true), + ) testCases := []struct { roomVer gomatrixserverlib.RoomVersion |