Skip to content

Commit 961aa73

Browse files
committed
Revert "Break some stuff"
This reverts commit ad3a923.
1 parent ad3a923 commit 961aa73

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def fail(hint: Any, value: Any) -> None:
379379
ok(MyTypedDict, {"foo": "bar", "blah": "meh"})
380380

381381
# Non-string dict keys are supported
382-
ok(Dict[int, str], {1: "2"})
382+
ok(Dict[int, str], {1: "1"})
383383
ok(Dict[float, str], {1.0: "1"})
384384
ok(Dict[bool, str], {True: "1"})
385385
ok(Dict[None, str], {None: "1"})

tests/worker/test_workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7051,7 +7051,7 @@ async def run(self, scenario) -> None:
70517051
if scenario == "workflow.wait_condition":
70527052
await workflow.wait_condition(lambda: False, timeout=0.01)
70537053
elif scenario == "asyncio.wait_for":
7054-
await asyncio.wait_for(asyncio.sleep(1000), timeout=0.0)
7054+
await asyncio.wait_for(asyncio.sleep(1000), timeout=0.01)
70557055
elif scenario == "asyncio.timeout":
70567056
if sys.version_info >= (3, 11):
70577057
async with asyncio.timeout(0.1):
@@ -7136,7 +7136,7 @@ async def test_workflow_deadlock_interruptible(client: Client):
71367136

71377137
# Confirm workflow was interrupted
71387138
async def check_completed():
7139-
assert deadlock_interruptible_completed < 1
7139+
assert deadlock_interruptible_completed >= 1
71407140

71417141
await assert_eventually(check_completed)
71427142
completed_sec = time.monotonic()

0 commit comments

Comments
 (0)