Ensure streams and destroyed on end of /stream request to see if addressess TCP leak issue (#175)

This commit is contained in:
Simon J
2023-10-09 16:19:00 +11:00
committed by GitHub
parent 9786d9f1dd
commit fb5f8e81ec
6 changed files with 53 additions and 13 deletions

View File

@@ -393,6 +393,14 @@ describe("config", () => {
expect(config().subsonic.url).toEqual(url);
});
});
describe(`when ${k} is specified with trailing slash`, () => {
it(`should remove the trailing slash and use it for ${k}`, () => {
const url = "http://navidrome.example.com:1234";
process.env[k] = `${url}/`;
expect(config().subsonic.url).toEqual(url);
});
});
});
});