mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-02 04:18:38 -04:00
Begin move away from using http.ServeMux
This commit is contained in:
@ -186,8 +186,7 @@ func RunTests(m *testing.M) int {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
servemux := handlers.GetHandler(dbmap)
|
||||
server = httptest.NewTLSServer(servemux)
|
||||
server = httptest.NewTLSServer(&handlers.APIHandler{DB: dbmap})
|
||||
defer server.Close()
|
||||
|
||||
return m.Run()
|
||||
|
Reference in New Issue
Block a user