mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
ci(flatpak): sync with flathub (#3259)
This commit is contained in:
@@ -45,9 +45,18 @@ TEST_P(DownloadFileTest, Run) {
|
||||
ASSERT_TRUE(http::download_file(url, path));
|
||||
}
|
||||
|
||||
#ifdef SUNSHINE_BUILD_FLATPAK
|
||||
// requires running `npm run serve` prior to running the tests
|
||||
constexpr const char *URL_1 = "http://0.0.0.0:3000/hello.txt";
|
||||
constexpr const char *URL_2 = "http://0.0.0.0:3000/hello-redirect.txt";
|
||||
#else
|
||||
constexpr const char *URL_1 = "https://httpbin.org/base64/aGVsbG8h";
|
||||
constexpr const char *URL_2 = "https://httpbin.org/redirect-to?url=/base64/aGVsbG8h";
|
||||
#endif
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
DownloadFileTests,
|
||||
DownloadFileTest,
|
||||
testing::Values(
|
||||
std::make_tuple("https://httpbin.org/base64/aGVsbG8h", "hello.txt"),
|
||||
std::make_tuple("https://httpbin.org/redirect-to?url=/base64/aGVsbG8h", "hello-redirect.txt")));
|
||||
std::make_tuple(URL_1, "hello.txt"),
|
||||
std::make_tuple(URL_2, "hello-redirect.txt")));
|
||||
|
||||
Reference in New Issue
Block a user