fix test_restart_master_long