Fix the problem that view test cannot pass on windows