It looks like my tweak in ecc6c42697 made the test pass on windows and the linux aarch64 bot.
ecc6c42697