   end
 
   thrift_test "it returns :ok on void oneway functions if the server dies", ctx do
-    Process.unlink(ctx.server)
-
     Process.flag(:trap_exit, true)
     ServerSpy.set_reply(:noreply)
 
-    ref = Process.monitor(ctx.server)
-    Process.exit(ctx.server, :normal)
-
-    assert_receive {:DOWN, ^ref, _, _, _}
+    stop_server(ctx.server)
+
     assert_receive {:EXIT, _, {:error, :econnrefused}}, 100
 
     # this assertion is unusual, as it should exit, but the server

        :ok
    end
    Process.flag(:trap_exit, true)
    Process.unlink(ctx.server)
    Process.exit(ctx.server, :kill)

    client = ctx.client

    refute Process.alive?(ctx.client)
  end

  thrift_test "clients don't retry by default" do
    Process.flag(:trap_exit, true)

    new_server_port = random_port()
