It is call '
judge-shopping' when the
suing party withdraw their
suit 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.