This commit is contained in:
Roman Isaev 2025-01-23 03:10:56 +00:00
parent a185027fda
commit b5f34dfe47
No known key found for this signature in database
GPG key ID: 7BE2B6A6C89AEC7F

View file

@ -97,9 +97,9 @@ func TestVerifyUserFromRequest(t *testing.T) {
return &resp, nil
}
httpClient := http.Client{
Transport: &roundTripper{roundTrip: roundTrip},
}
httpClient := fclient.NewClient(
fclient.WithTransport(&roundTripper{roundTrip: roundTrip}),
)
ctx := context.Background()
test.WithAllDatabases(t, func(t *testing.T, dbType test.DBType) {
@ -125,7 +125,7 @@ func TestVerifyUserFromRequest(t *testing.T) {
cfg.Global.ServerName,
cfg.MSCs.MSC3861,
false,
&httpClient,
httpClient,
)
if err != nil {
t.Fatal(err.Error())