From 597f83c73527c1a171bd16f52efccc6eae848bb4 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 5 Nov 2024 09:23:56 +0100 Subject: [PATCH] fix(tests): Fix TestMigrateActionsArtifacts() Since we have artifact fixtures now, some ids are in use. To avoid reusing IDs, start them at 42, rather than 0. That's past the ids used by the fixtures. Signed-off-by: Gergely Nagy --- cmd/migrate_storage_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/migrate_storage_test.go b/cmd/migrate_storage_test.go index 800a15e215..56745e9a38 100644 --- a/cmd/migrate_storage_test.go +++ b/cmd/migrate_storage_test.go @@ -91,7 +91,7 @@ func TestMigrateActionsArtifacts(t *testing.T) { srcStorage, _ := createLocalStorage(t) defer test.MockVariableValue(&storage.ActionsArtifacts, srcStorage)() - id := int64(0) + id := int64(42) addArtifact := func(storagePath string, status actions.ArtifactStatus) { id++