fix flaky integTest

+review REVIEW-5192
+review REVIEW-5208