Skip to content

Commit

Permalink
internal/update: remove test error field
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Layher <mdlayher@planetscale.com>
  • Loading branch information
mdlayher committed Jan 8, 2024
1 parent c271f77 commit e952fcf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/update/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e952fcf

Please sign in to comment.