Skip to content

Commit d9d8662

Browse files
moonlifacebook-github-bot
authored andcommitted
fix test_supervision_with_sending_error flaky test (#767)
Summary: Pull Request resolved: #767 The error message could be difference, but both are supervision error. Fixing the test by checking the supervisione error prefix now. Reviewed By: pzhan9 Differential Revision: D79668418 fbshipit-source-id: 6ebff39c820bd8284c4524300b2c153bbb8e1a7d
1 parent fde1949 commit d9d8662

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/tests/test_actor_error.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,9 +662,7 @@ async def test_supervision_with_sending_error():
662662
await actor_mesh.check_with_payload.call(payload="a")
663663

664664
# send a large payload to trigger send timeout error
665-
with pytest.raises(
666-
SupervisionError, match="supervision error:.*actor mesh is stopped"
667-
):
665+
with pytest.raises(SupervisionError, match="supervision error:.*"):
668666
await actor_mesh.check_with_payload.call(payload="a" * 55000000)
669667

670668
# new call should fail with check of health state of actor mesh

0 commit comments

Comments
 (0)