Skip to content

Commit

Permalink
Update error msg checks
Browse files Browse the repository at this point in the history
  • Loading branch information
yinggeh committed Aug 31, 2024
1 parent 62184db commit 8492549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qa/L0_input_validation/input_validation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def get_input_array(input_size, np_dtype):
triton_client.infer(model_name=model_name, inputs=inputs)
err_str = str(e.exception)
self.assertIn(
f"expected {input_size} string elements for inference input 'INPUT1', got {input_size-2}",
f"expected {input_size} string elements for inference input 'INPUT1' for model '{model_name}', got {input_size-2}",
err_str,
)

Expand All @@ -208,7 +208,7 @@ def get_input_array(input_size, np_dtype):
triton_client.infer(model_name=model_name, inputs=inputs)
err_str = str(e.exception)
self.assertIn(
f"expected {input_size} string elements for inference input 'INPUT1', got {input_size+2}",
f"expected {input_size} string elements for inference input 'INPUT1' for model '{model_name}', got {input_size+2}",
err_str,
)

Expand Down

0 comments on commit 8492549

Please sign in to comment.