It is call 'judge-shopping
' when the suing party withdraw
once it is determined a tough judge
(or a judge who will likely rule
in favor of the opposing party) will be assigned the case
A similar action is to request a different judge without having to give a reason.