[server][testMain] Try to reopen a target file repeatedly. This is a trial of workaround for #61.