Skip to content

Commit b5f34df

Browse files
committed
fix test
1 parent a185027 commit b5f34df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup/mscs/msc3861/msc3861_user_verifier_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ func TestVerifyUserFromRequest(t *testing.T) {
9797
return &resp, nil
9898
}
9999

100-
httpClient := http.Client{
101-
Transport: &roundTripper{roundTrip: roundTrip},
102-
}
100+
httpClient := fclient.NewClient(
101+
fclient.WithTransport(&roundTripper{roundTrip: roundTrip}),
102+
)
103103

104104
ctx := context.Background()
105105
test.WithAllDatabases(t, func(t *testing.T, dbType test.DBType) {
@@ -125,7 +125,7 @@ func TestVerifyUserFromRequest(t *testing.T) {
125125
cfg.Global.ServerName,
126126
cfg.MSCs.MSC3861,
127127
false,
128-
&httpClient,
128+
httpClient,
129129
)
130130
if err != nil {
131131
t.Fatal(err.Error())

0 commit comments

Comments
 (0)