mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
login/social: Simplify test (#26679)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
7a5464fe10
commit
e08972d567
@ -2,7 +2,6 @@ package social
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"time"
|
||||
@ -311,7 +310,7 @@ func TestUserInfoSearchesForEmailAndRole(t *testing.T) {
|
||||
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
_, err = io.WriteString(w, string(response))
|
||||
_, err = w.Write(response)
|
||||
require.NoError(t, err)
|
||||
}))
|
||||
provider.apiUrl = ts.URL
|
||||
|
Loading…
Reference in New Issue
Block a user