     end)
 
     GenServer.cast(pid, {:new_data, %{dev | needs_reset: true}})
-    Process.sleep(20)
+    Process.sleep(300)
   end
 
   test "DO NOT trigger factory reset during update" do

      raise nooo
    end)

    Process.sleep(20)
  end
end

    dev
  end

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

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

    # Hmmm
    Process.sleep(300)
  end

  test "DO trigger factory reset during update" do
