diff --git a/test/testerrorlogger.cpp b/test/testerrorlogger.cpp index 6cf31079e56..39c219c1d9b 100644 --- a/test/testerrorlogger.cpp +++ b/test/testerrorlogger.cpp @@ -494,9 +494,8 @@ class TestErrorLogger : public TestFixture { } void SerializeAndDeserialize() const { - ErrorMessage msg({}, emptyString, Severity::warning, emptyString, "id", Certainty::normal); + ErrorMessage msg({}, emptyString, Severity::warning, "$symbol:var\nmessage $symbol", "id", Certainty::normal); msg.remark = "some remark"; - msg.setmsg("$symbol:var\nmessage $symbol"); ErrorMessage msg2; ASSERT_NO_THROW(msg2.deserialize(msg.serialize()));