cluster_find.cpp sets aside 10% of maxTimeMS for buffered partial results to be returned in the event of a MaxTimeMSExpired error with allowPartialResults set. If this 10% of time is inadequate then a MaxTimeMSExpired error is returned instead of the partial results that are available. This makes js integration testing difficult because we may never see the partial results that we expect.
The solution is likely some kind of failpoint to extent the time budget for returning buffered partial results.