1 From 5a886abd956607503e9dc7cd22923eaf8b01e46f Mon Sep 17 00:00:00 2001
2 From: Pavel Sobolev <contact@paveloom.dev>
3 Date: Mon, 3 Jun 2024 20:31:27 +0300
4 Subject: [PATCH] Disable tests that require network access.
7 tests/integration/meson.build | 2 --
8 tests/libutils/test.cpp | 20 --------------------
9 2 files changed, 22 deletions(-)
11 diff --git a/tests/integration/meson.build b/tests/integration/meson.build
12 index da1b3b76..8908e690 100644
13 --- a/tests/integration/meson.build
14 +++ b/tests/integration/meson.build
15 @@ -51,8 +51,6 @@ wrap_files = files(
16 'wrap-test/vorbis.wrap',
19 -test('wrap-test', wrap_tester, args: [wrap_files], timeout: 200000)
21 partial_interpreter_tests = [
24 diff --git a/tests/libutils/test.cpp b/tests/libutils/test.cpp
25 index 2b20191c..c313312b 100644
26 --- a/tests/libutils/test.cpp
27 +++ b/tests/libutils/test.cpp
28 @@ -131,26 +131,6 @@ TEST(UtilsTest, testMergingDirectories) {
29 ASSERT_EQ('a', std::ifstream(outputDir / "i1/a.txt").get());
32 -TEST(UtilsTest, testDownloadAndExtraction) {
33 - auto zipFileName = std::filesystem::path{randomFile() + "-1"};
34 - auto result = downloadFile(
35 - "https://github.com/JCWasmx86/mesonlsp/archive/refs/heads/main.zip",
37 - ASSERT_TRUE(result);
38 - auto directoryName = std::filesystem::path{randomFile() + "-2"};
39 - std::filesystem::create_directory(directoryName);
40 - result = extractFile(zipFileName, directoryName);
41 - ASSERT_TRUE(result);
43 - directoryName / "mesonlsp-main/Benchmarks/extract_git_data.sh";
44 - ASSERT_TRUE(std::filesystem::exists(mustExist));
45 - auto mustFailFilename = std::filesystem::path{randomFile() + "-3"};
47 - downloadFile("lnfvwoefvnwefvwvipwnefv2efvpov2nvov", mustFailFilename);
48 - ASSERT_FALSE(result);
49 - ASSERT_FALSE(std::filesystem::exists(mustFailFilename));
52 int main(int argc, char **argv) {
53 testing::InitGoogleTest(&argc, argv);
54 return RUN_ALL_TESTS();