diff --git a/internal/api/radio_test.go b/internal/api/radio_test.go index 08e76480..90720559 100644 --- a/internal/api/radio_test.go +++ b/internal/api/radio_test.go @@ -7,10 +7,11 @@ import ( "net/http/httptest" "testing" + "git.fabledsword.com/bvandeusen/minstrel/internal/db/dbq" "git.fabledsword.com/bvandeusen/minstrel/internal/recommendation" ) -func callRadio(h *handlers, user interface{}, query string) *httptest.ResponseRecorder { +func callRadio(h *handlers, user dbq.User, query string) *httptest.ResponseRecorder { req := httptest.NewRequest(http.MethodGet, "/api/radio?"+query, nil) req = withUser(req, user) w := httptest.NewRecorder()