anchor.diff:  -define(TIMEOUT, 3000).
   
   
  --ifdef(run_broken_tests).
  -
   start() ->
       Ctx = test_util:start_couch(),
       config:set("query_server_config", "os_process_limit", "3", false),
  +    timer:sleep(100), %% we need to wait to let gen_server:cast finish
       Ctx.
   
   
  
positive.code:         ?assertEqual(ok, ping_client(Client4)),
  
          Proc4 = get_client_proc(Client4, "4"),
          ?assertEqual(Proc1, Proc4),
  
          lists:map(fun(C) ->
              ?assertEqual(ok, stop_client(C))
          end, [Client2, Client3, Client4])
      end).
  
  should_free_slot_on_proc_unexpected_exit() ->
      ?_test(begin
  
negative.code:         Proc2 = get_client_proc(Client2, "2"),
          Proc3 = get_client_proc(Client3, "3"),
  
          ?assertNotEqual(Proc1#proc.pid, Proc2#proc.pid),
          ?assertNotEqual(Proc1#proc.client, Proc2#proc.client),
          ?assertNotEqual(Proc2#proc.pid, Proc3#proc.pid),
          ?assertNotEqual(Proc2#proc.client, Proc3#proc.client),
          ?assertNotEqual(Proc3#proc.pid, Proc1#proc.pid),
          ?assertNotEqual(Proc3#proc.client, Proc1#proc.client),
  
          ?assertEqual(ok, kill_client(Client1)),
  
  