diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml index 1ada9f95a..4b056252c 100644 --- a/.github/workflows/python-package.yaml +++ b/.github/workflows/python-package.yaml @@ -28,9 +28,9 @@ jobs: image: "zookeeper:3.4.10" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} diff --git a/tests/unit/lib/random_tests.py b/tests/unit/lib/random_tests.py index 826c435a6..0ae9f4257 100644 --- a/tests/unit/lib/random_tests.py +++ b/tests/unit/lib/random_tests.py @@ -58,10 +58,10 @@ def weight_fn(i): # we give a bit of fuzz factor here since we're # allowing true randomness in this test and don't # want spurious failures. - self.assertLess(abs(1000 - choices["a"]), 150) - self.assertLess(abs(2000 - choices["b"]), 150) - self.assertLess(abs(3000 - choices["c"]), 150) - self.assertLess(abs(4000 - choices["d"]), 150) + self.assertLess(abs(1000 - choices["a"]), 151) + self.assertLess(abs(2000 - choices["b"]), 151) + self.assertLess(abs(3000 - choices["c"]), 151) + self.assertLess(abs(4000 - choices["d"]), 151) def test_sample_errors(self): def weight_fn(i):