Issue #3214565 by Spokje, longwave, alexpott, Lendude: [random test failure] Random fail in BuildTestTest::testPortMany (cherry picked from commit 2c709ec1)