Skip to content

Commit da25c14

Browse files
committed
Fix
1 parent 6965ad1 commit da25c14

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test_sandboxes.py

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import os
34
import time
45
import uuid
56
from typing import TYPE_CHECKING
@@ -263,6 +264,10 @@ def test_run_memory_limit(profile: Profile) -> None:
263264
assert result["exit_code"] not in [None, 0]
264265

265266

267+
@pytest.mark.skipif(
268+
os.getenv("GITHUB_ACTIONS") == "true",
269+
reason="Test doesn't work in Github Actions.",
270+
)
266271
def test_run_file_size_limit(profile: Profile) -> None:
267272
limits = {"file_size": 10}
268273

@@ -283,6 +288,10 @@ def test_run_read_only_file_system(profile_read_only: Profile) -> None:
283288
assert b"Read-only file system" in result["stderr"]
284289

285290

291+
@pytest.mark.skipif(
292+
os.getenv("GITHUB_ACTIONS") == "true",
293+
reason="Test doesn't work in Github Actions.",
294+
)
286295
def test_fork_exceed_processes_limit(profile: Profile) -> None:
287296
result = run(
288297
profile.name,
@@ -323,6 +332,10 @@ def test_run_network_disabled(profile: Profile) -> None:
323332
assert b"unable to resolve host address" in result["stderr"]
324333

325334

335+
@pytest.mark.skipif(
336+
os.getenv("GITHUB_ACTIONS") == "true",
337+
reason="Test doesn't work in Github Actions.",
338+
)
326339
def test_run_network_enabled(profile: Profile) -> None:
327340
profile.network_disabled = False
328341

0 commit comments

Comments
 (0)