Skip to content

Commit a9b1a1b

Browse files
authored
expecting no error as updatefn is not returning one (#50)
Co-authored-by: Andreas Amstutz <tullo@users.noreply.github.com>
1 parent 7b7c71a commit a9b1a1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/trainer/adapters/hour_repository_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func testUpdateHour_rollback(t *testing.T, repository hour.Repository) {
216216
require.NoError(t, h.MakeAvailable())
217217
return h, nil
218218
})
219-
require.Error(t, err)
219+
require.NoError(t, err)
220220

221221
err = repository.UpdateHour(ctx, hourTime, func(h *hour.Hour) (*hour.Hour, error) {
222222
assert.True(t, h.IsAvailable())

0 commit comments

Comments
 (0)