mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Fix used AS API
This commit is contained in:
parent
3a23f48c76
commit
00b57554c1
|
|
@ -139,12 +139,11 @@ func TestAppserviceInternalAPI(t *testing.T) {
|
||||||
apiURL, cancel := test.ListenAndServe(t, router, false)
|
apiURL, cancel := test.ListenAndServe(t, router, false)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
var err error
|
asHTTPApi, err := inthttp.NewAppserviceClient(apiURL, &http.Client{})
|
||||||
asAPI, err = inthttp.NewAppserviceClient(apiURL, &http.Client{})
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to create HTTP client: %s", err)
|
t.Fatalf("failed to create HTTP client: %s", err)
|
||||||
}
|
}
|
||||||
runCases(t, asAPI)
|
runCases(t, asHTTPApi)
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("Monolith", func(t *testing.T) {
|
t.Run("Monolith", func(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue