Fix unit tests

main
Kegan Dougal 2020-08-07 17:58:44 +01:00
parent f371783da7
commit 366fd975c8
1 changed files with 2 additions and 2 deletions

View File

@ -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 { func newFedClient(tripper func(*http.Request) (*http.Response, error)) *gomatrixserverlib.FederationClient {
_, pkey, _ := ed25519.GenerateKey(nil) _, pkey, _ := ed25519.GenerateKey(nil)
fedClient := gomatrixserverlib.NewFederationClient( 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 return fedClient
} }