       raise nooo
     end)
 
-    Process.sleep(20)
+    Process.sleep(300)
   end
 end

    dev
  end

  describe "devices" do
    test "triggering of factory reset during init" do
      expect(Stubs, :factory_reset, fn "farmbot_os" ->
        :ok
      end)

      dev = fresh_device()
      {:ok, _pid} = AssetWorker.start_link(dev, [])

      # Hmmm
      Process.sleep(20)
    end
  end

  test "DO trigger factory reset during update" do

    end)

    GenServer.cast(pid, {:new_data, %{dev | needs_reset: true}})
    Process.sleep(300)
  end

  test "DO NOT trigger factory reset during update" do
