Files
msw-open-music/internal/pkg/api/api_test.go
2021-05-21 01:00:58 +08:00

12 lines
193 B
Go

package api
import "testing"
func TestAPI(t *testing.T) {
api, err := NewAPI("/tmp/test.sqlite3", ":8080")
if err != nil {
t.Fatal(err.Error())
}
t.Fatal(api.Server.ListenAndServe())
}