Skip to content

Commit 45d1b6b

Browse files
committed
Reorder memory leak test
1 parent efd77d3 commit 45d1b6b

File tree

1 file changed

+3
-3
lines changed
  • dev/tests/integration/framework/Magento/TestFramework/Helper

1 file changed

+3
-3
lines changed

dev/tests/integration/framework/Magento/TestFramework/Helper/Memory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public function getRealMemoryUsage()
4747
{
4848
$pid = getmypid();
4949
try {
50+
// fall back to the Unix command line
51+
$result = $this->_getUnixProcessMemoryUsage($pid);
52+
} catch (\Magento\Framework\Exception\LocalizedException $e) {
5053
// try to use the Windows command line
5154
// some ports of Unix commands on Windows, such as MinGW, have limited capabilities and cannot be used
5255
$result = $this->_getWinProcessMemoryUsage($pid);
53-
} catch (\Magento\Framework\Exception\LocalizedException $e) {
54-
// fall back to the Unix command line
55-
$result = $this->_getUnixProcessMemoryUsage($pid);
5656
}
5757
return $result;
5858
}

0 commit comments

Comments
 (0)