fix test. Possibility of second task getting the rejection exception is removed
Merge pull request #2059 from sancar/fix/executorPendingStats/maint3.x

Fix/executor pending stats/maint3.x