CommunityMessages - Define more consistent behavior in the face of slow execution
authorTim Otten <totten@civicrm.org>
Sat, 6 Jun 2020 22:21:01 +0000 (15:21 -0700)
committerTim Otten <totten@civicrm.org>
Sat, 6 Jun 2020 22:56:27 +0000 (15:56 -0700)
commitaac059525beadf56153539c732fd953bc0888c77
treed62795eb3c94bbc220290fceb0efbc46121a1c7c
parente49a5538738e8c5075a432ef65d85755a7b94b70
CommunityMessages - Define more consistent behavior in the face of slow execution

This passes under some brutally slow scenarios:

```
for TIME_FUNC in natural frozen linear:500 linear:1250 prng:500 prng:666 prng:1000 prng:1500 ; do
  export TIME_FUNC;
  echo;
  echo "TIME_FUNC=$TIME_FUNC" ;
  env CIVICRM_UF=UnitTests phpunit6 tests/phpunit/CRM/Core/CommunityMessagesTest.php ;
done
```
CRM/Core/CommunityMessages.php
tests/phpunit/CRM/Core/CommunityMessagesTest.php