 
   def apply_default_mocks do
     ok1 = fn _ -> :whatever end
-    expect(FarmbotExt.API.EagerLoader.Supervisor, :drop_all_cache, fn -> :ok end)
+    stub(FarmbotExt.API.EagerLoader.Supervisor, :drop_all_cache, fn -> :ok end)
     stub(ConnectionWorker, :close_channel, ok1)
     stub(ConnectionWorker, :maybe_connect_autosync, ok1)
   end

    # Not much to check here other than matching clauses.
    # AMQP lib handles most all of this.
    expect(Preloader, :preload_all, 1, fn -> :ok end)
    send(generate_pid(), msg)
    Process.sleep(10)
  end

  test "init / terminate - auto_sync enabled" do
    expect(Preloader, :preload_all, 1, fn -> :ok end)

    assert %{chan: nil, conn: nil, preloaded: false} == AutoSyncChannel.network_status(pid)
    GenServer.stop(pid, :normal)
  end
end
