[BUGFIX] Stabilize a flaky unit test 97/53297/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 21 Jun 2017 11:09:22 +0000 (13:09 +0200)
committerJan Helke <typo3@helke.de>
Wed, 21 Jun 2017 11:29:27 +0000 (13:29 +0200)
commitf8b70e1d4e3b1a9b04b001a0d192fad568b1d5cc
tree1c16ccbce21f4a9c2ca76aa4eaabae27aa812c80
parentf8f0acbdd83631226bf7143e54318f9382d69267
[BUGFIX] Stabilize a flaky unit test

getParseTimeReturnsZeroIfNoValuesAreSet() tends to fail sometimes
if $beUserInitialization is > 0 but $totalParseTime is 0. This
edge case of method getParseTime() is avoided by rearranging the call
order of $this->getMilliseconds() slightly.

Change-Id: If5cf00196f6739224c34011b0f8c1ef1f5bbb39a
Resolves: #81653
Related: #80742
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/53297
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <anja.leichsenring@typo3.com>
Tested-by: Anja Leichsenring <anja.leichsenring@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/core/Classes/TimeTracker/TimeTracker.php