OpenSubsonic: getPodcastEpisode, topSongsByArtistId, transcodeOffset (real ffmpeg seek)
This commit is contained in:
@@ -74,3 +74,13 @@ func newTestRecorderServer(t *testing.T) (*Server, *httptest.Server) {
|
||||
t.Cleanup(srv.Close)
|
||||
return s, srv
|
||||
}
|
||||
|
||||
// newSubsonicTestServer starts an HTTP server for an already-constructed
|
||||
// Server (as opposed to newTestRecorderServer, which builds its own) —
|
||||
// for tests that need to seed the database before the server matters.
|
||||
func newSubsonicTestServer(t *testing.T, s *Server) string {
|
||||
t.Helper()
|
||||
srv := httptest.NewServer(s.Router())
|
||||
t.Cleanup(srv.Close)
|
||||
return srv.URL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user