diff --git a/internal/update/update_test.go b/internal/update/update_test.go index 5c7dd5d6..398a8454 100644 --- a/internal/update/update_test.go +++ b/internal/update/update_test.go @@ -133,7 +133,6 @@ func Test_setStateEntry(t *testing.T) { tests := []struct { name string setup func(t *testing.T) string - err error }{ { name: "create file", @@ -165,12 +164,7 @@ func Test_setStateEntry(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { path := tt.setup(t) - - err := setStateEntry(path, time.Unix(1, 0), ReleaseInfo{}) - require.ErrorIs(t, err, tt.err) - if err != nil { - return - } + require.NoError(t, setStateEntry(path, time.Unix(1, 0), ReleaseInfo{})) stat, err := os.Stat(path) require.NoError(t, err)