fix(tests): silence Windows-only cfg warnings (#10090)