From 85db3d9776909fffa5aa0ec1cfc884f5f2af4226 Mon Sep 17 00:00:00 2001
From: Daniel <dhaavi@users.noreply.github.com>
Date: Mon, 2 Oct 2023 16:01:55 +0200
Subject: [PATCH] Fix version selection test

---
 updater/resource_test.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/updater/resource_test.go b/updater/resource_test.go
index 3177544..ceb51e9 100644
--- a/updater/resource_test.go
+++ b/updater/resource_test.go
@@ -45,6 +45,8 @@ func TestVersionSelection(t *testing.T) {
 	registry.UsePreReleases = true
 	registry.DevMode = true
 	registry.Online = true
+	res.Index = &Index{AutoDownload: true}
+
 	res.selectVersion()
 	if res.SelectedVersion.VersionNumber != "0.0.0" {
 		t.Errorf("selected version should be 0.0.0, not %s", res.SelectedVersion.VersionNumber)