Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sidhant Kohli <sidhant.kohli@gmail.com>
  • Loading branch information
kohlisid committed Oct 30, 2024
1 parent 9cb5f0d commit e627427
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/map/test_async_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_map_grpc_error_no_handshake(self) -> None:
except grpc.RpcError as e:
logging.error(e)
grpc_exception = e
self.assertTrue("MapFn: expected handshake message" in e.__str__())
self.assertTrue("MapFn: expected handshake as the first message" in e.__str__())

self.assertEqual(0, len(responses))
self.assertIsNotNone(grpc_exception)
Expand Down
2 changes: 1 addition & 1 deletion tests/map/test_multiproc_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_udf_map_err_handshake(self):
break

metadata, code, details = method.termination()
self.assertTrue("MapFn: expected handshake message" in details)
self.assertTrue("MapFn: expected handshake as the first message" in details)
self.assertEqual(grpc.StatusCode.UNKNOWN, code)

def test_udf_map_err(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/map/test_sync_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_udf_map_err_handshake(self):
break

metadata, code, details = method.termination()
self.assertTrue("MapFn: expected handshake message" in details)
self.assertTrue("MapFn: expected handshake as the first message" in details)
self.assertEqual(grpc.StatusCode.UNKNOWN, code)

def test_udf_map_error_response(self):
Expand Down

0 comments on commit e627427

Please sign in to comment.