Commit 014e9b4a authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning found by cppcheck

parent c141fd7c
......@@ -136,11 +136,10 @@ void MessageQueueJobTest::testValidMessages()
void MessageQueueJobTest::testInvalidMessages()
{
MessageQueueJob *job = nullptr;
Message::Ptr msg;
// without message
job = new MessageQueueJob;
MessageQueueJob *job = new MessageQueueJob;
job->transportAttribute().setTransportId(TransportManager::self()->defaultTransportId());
job->addressAttribute().setTo(SPAM_ADDRESS);
QVERIFY(!job->exec());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment