fix flaky red build end-end spec