main: simplify upload error handling

This commit is contained in:
Lukas Zapletal 2025-02-12 10:36:44 +01:00 committed by Michael Vogt
parent 8d03b2215c
commit 6dd8515801
4 changed files with 20 additions and 27 deletions

View file

@ -343,7 +343,7 @@ func TestBuildIntegrationHappy(t *testing.T) {
assert.NoError(t, err)
// ensure osbuild was run exactly one
assert.Equal(t, 1, len(fakeOsbuildCmd.Calls()))
require.Equal(t, 1, len(fakeOsbuildCmd.Calls()))
osbuildCall := fakeOsbuildCmd.Calls()[0]
// --cache is passed correctly to osbuild
storePos := slices.Index(osbuildCall, "--store")