Skip to content

Commit 55324d4

Browse files
committed
Mock running on FaaS
1 parent 7765b7d commit 55324d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,8 +2010,8 @@ async def test_srv_max_hosts_kwarg(self):
20102010
"loadBalanced clients do not run SDAM",
20112011
)
20122012
@unittest.skipIf(sys.platform == "win32", "Windows does not support SIGSTOP")
2013-
@unittest.skipUnless(_is_faas(), "Non-FaaS environments raise timeouts faster")
20142013
@async_client_context.require_sync
2014+
@mock.patch.dict("os.environ", {"AWS_LAMBDA_RUNTIME_API": "1"})
20152015
def test_sigstop_sigcont(self):
20162016
test_dir = os.path.dirname(os.path.realpath(__file__))
20172017
script = os.path.join(test_dir, "sigstop_sigcont.py")

test/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1967,8 +1967,8 @@ def test_srv_max_hosts_kwarg(self):
19671967
"loadBalanced clients do not run SDAM",
19681968
)
19691969
@unittest.skipIf(sys.platform == "win32", "Windows does not support SIGSTOP")
1970-
@unittest.skipUnless(_is_faas(), "Non-FaaS environments raise timeouts faster")
19711970
@client_context.require_sync
1971+
@mock.patch.dict("os.environ", {"AWS_LAMBDA_RUNTIME_API": "1"})
19721972
def test_sigstop_sigcont(self):
19731973
test_dir = os.path.dirname(os.path.realpath(__file__))
19741974
script = os.path.join(test_dir, "sigstop_sigcont.py")

0 commit comments

Comments
 (0)