From 2fa634d092cbe18745f93cf915625920035d04ae Mon Sep 17 00:00:00 2001 From: Jishnu M Date: Tue, 31 Dec 2024 15:29:09 +0530 Subject: [PATCH] fix tests --- .github/workflows/test.yml | 2 +- test/test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 504b852..943eabb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] - workflow_dispatch: + workflow_dispatch permissions: contents: read diff --git a/test/test.py b/test/test.py index 88f3c3e..b1c8b17 100644 --- a/test/test.py +++ b/test/test.py @@ -101,7 +101,7 @@ def test_speed_limit(self): url = self.download_file_1MB # file is 1.44MB, accurate time is 14s file_path = os.path.join(self.temp_dir, "test_1.dat") dl.start(url, file_path, display=False, speed_limit=0.1) - self.assertTrue(10 <= int(dl.time_spent) <= 20, f"took: {dl.time_spent}s") + self.assertTrue(10 <= int(dl.time_spent) <= 30, f"took: {dl.time_spent}s") def test_unblocked_download(self): dl = Pypdl(max_concurrent=2)