anchor.diff:          ?assert(is_process_alive(Writer1)),
           ?assert(is_process_alive(Writer2)),
           ?assert(is_process_alive(Writer3)),
  +
  +        %% Resume compaction
  +        erlang:resume_process(CPid),
   
           receive
               {'DOWN', MonRef, process, _, Reason} ->
  
positive.code:         ?assert(is_pid(NewIndexerPid)),
          ?assert(is_process_alive(NewIndexerPid)),
          ?assertNotEqual(IndexerPid, NewIndexerPid),
          ?assertEqual(2, count_users(DbName)),
  
          Rows1 = query_view(DbName, "foo", "bar", ok),
          ?assertEqual(0, length(Rows1)),
  
negative.code:         ?assertEqual(ok, get_writer_status(Writer1)),
          ?assertEqual(ok, get_writer_status(Writer2)),
  
          %% Below we do exactly the same as couch_mrview:compact holds inside
          %% because we need have access to compaction Pid, not a Ref.
          %% {ok, MonRef} = couch_mrview:compact(MDb1#db.name, <<"_design/foo">>,
          %%                                     [monitor]),
          {ok, Pid} = couch_index_server:get_index(
              couch_mrview_index, MDb1#db.name, <<"_design/foo">>),
          {ok, CPid} = gen_server:call(Pid, compact),
          %% By suspending compaction process we ensure that compaction won't get
          %% finished too early to make get_writer_status assertion fail.
          erlang:suspend_process(CPid),
          MonRef = erlang:monitor(process, CPid),
          Writer3 = spawn_writer(Db3#db.name),
          ?assert(is_process_alive(Writer3)),
          ?assertEqual({error, all_dbs_active}, get_writer_status(Writer3)),
  