Skip to content

Commit b183ae7

Browse files
committed
fix test match
1 parent defd24a commit b183ae7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

qa/L0_http/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@ if [ "$code" == "200" ]; then
495495
echo -e "\n***\n*** Test Failed\n***"
496496
RET=1
497497
fi
498-
if [ `grep -c "\{\"error\":\"Failed to parse 'data' field: shape does not match true shape\"\}" ./curl.out` != "1" ]; then
499-
echo -e "\{\"error\":\"Failed to parse 'data' field: shape does not match true shape\"\} not found in output when expected"
498+
if [ `grep -c "\{\"error\":\"Failed to parse 'data' field: shape does not match true shape of 'data' field\"\}" ./curl.out` != "1" ]; then
499+
echo -e "\{\"error\":\"Failed to parse 'data' field: shape does not match true shape of 'data' field\"\} not found in output when expected"
500500
cat ./curl.out
501501
echo ""
502502
RET=1
@@ -511,8 +511,8 @@ if [ "$code" == "200" ]; then
511511
echo -e "\n***\n*** Test Failed\n***"
512512
RET=1
513513
fi
514-
if [ `grep -c "\{\"error\":\"Unable to parse 'data': shape does not match true shape\"\}" ./curl.out` != "1" ]; then
515-
echo -e "\{\"error\":\"Unable to parse 'data': shape does not match true shape\"\} not found in output when expected"
514+
if [ `grep -c "\{\"error\":\"Unable to parse 'data': Shape does not match true shape of 'data' field\"\}" ./curl.out` != "1" ]; then
515+
echo -e "\{\"error\":\"Unable to parse 'data': Shape does not match true shape of 'data' field\"\} not found in output when expected"
516516
cat ./curl.out
517517
echo ""
518518
RET=1

src/http_server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ ReadDataFromJsonHelper(
628628
if (actual_cnt < 0 || actual_cnt > expected_cnt) {
629629
return TRITONSERVER_ErrorNew(
630630
TRITONSERVER_ERROR_INTERNAL,
631-
"Shape does not match true shape of 'data' field");
631+
"shape does not match true shape of 'data' field");
632632
}
633633
memcpy(
634634
base + *counter, reinterpret_cast<char*>(&len), sizeof(uint32_t));

0 commit comments

Comments
 (0)