diff --git a/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php b/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php
index b62dcea0eae60f3b11d81cfec418a61fd654bc7b..1615927d02fc32a897c1bf425d1d5b9a53fbcc9d 100644
--- a/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php
+++ b/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php
@@ -30,7 +30,7 @@ class LogStatusCommandTest extends \PHPUnit_Framework_TestCase
             . 'log_customer                       | 0          | 16 b       | 16 b       |' . PHP_EOL
             . '-----------------------------------+------------+------------+------------+' . PHP_EOL
             . 'Total                              | 0          | 16 b       | 16 b       |' . PHP_EOL
-            . '-----------------------------------+------------+------------+------------+';
-        $this->assertEquals($expectedMsg . PHP_EOL, $commandTester->getDisplay());
+            . '-----------------------------------+------------+------------+------------+%w';
+        $this->assertStringMatchesFormat($expectedMsg, $commandTester->getDisplay());
     }
 }