Fix used AS API

This commit is contained in:
Till Faelligen 2022-12-01 13:54:37 +01:00
parent 3a23f48c76
commit 00b57554c1
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -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) {