[BUGFIX] Stabilize a flaky unit test 98/53298/3
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 12:02:57 +0000 (14:02 +0200)
commit7efc3141e0f8f32d6cbd3eff55a4106b6175453d
tree9282e36a7151d3f7aa6d57aff728670d107950b1
parente58eacdacf42966b1edebab0e3a19f9a5b14a573
[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.

Resolves: #81653
Related: #80742
Releases: master, 8.7
Change-Id: If5cf00196f6739224c34011b0f8c1ef1f5bbb39a
Reviewed-on: https://review.typo3.org/53298
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/core/Classes/TimeTracker/TimeTracker.php