From f42937916ee2d1d6586ca8b07bf156e7bd6ae4eb Mon Sep 17 00:00:00 2001 From: wacban Date: Mon, 28 Oct 2024 12:48:42 +0000 Subject: [PATCH] added assert message --- pytest/tests/sanity/congestion_control.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pytest/tests/sanity/congestion_control.py b/pytest/tests/sanity/congestion_control.py index 233accfbca1..153b3376b46 100644 --- a/pytest/tests/sanity/congestion_control.py +++ b/pytest/tests/sanity/congestion_control.py @@ -216,7 +216,10 @@ def __check_tx(self, result): # feature. Occasionally the contract is not rebuilt properly and cargo # clean is needed. status = result['result']['status'] - self.assertIn('SuccessValue', status) + self.assertIn( + 'SuccessValue', status, + "The transaction failed, please check that the contract was built with `test_features` enabled." + ) def __start_load(self, node: BaseNode, accounts): logger.info("Starting load threads")