From 78f14c07e716b78291adcecc22582baa823fe22f Mon Sep 17 00:00:00 2001 From: Richard Holland Date: Fri, 13 Jan 2023 12:34:28 +0000 Subject: [PATCH] fix STTx test --- src/test/protocol/STTx_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/protocol/STTx_test.cpp b/src/test/protocol/STTx_test.cpp index 4ef30fb7a..395672666 100644 --- a/src/test/protocol/STTx_test.cpp +++ b/src/test/protocol/STTx_test.cpp @@ -1564,7 +1564,7 @@ public: } catch (std::exception const& ex) { - BEAST_EXPECT(strcmp(ex.what(), "Unknown field") == 0); + BEAST_EXPECT(strncmp(ex.what(), "Unknown field", 7) == 0); } try @@ -1575,7 +1575,7 @@ public: } catch (std::exception const& ex) { - BEAST_EXPECT(strcmp(ex.what(), "Unknown field") == 0); + BEAST_EXPECT(strncmp(ex.what(), "Unknown field", 7) == 0); } }