diff --git a/cmd/tapir/uploads_test.go b/cmd/tapir/uploads_test.go index 894aaae..d96aeb2 100644 --- a/cmd/tapir/uploads_test.go +++ b/cmd/tapir/uploads_test.go @@ -20,15 +20,17 @@ import ( // fakeUploadsStore satisfies the store surface buildUploads needs, and counts the // start-up sweep. type fakeUploadsStore struct { - sweeps int - sweepErr error + sweeps int + sweepErr error + failedKinds []domain.UploadErrorKind } func (f *fakeUploadsStore) CreateUpload(context.Context, string, string, bool) (string, error) { return "id", nil } -func (f *fakeUploadsStore) FailUpload(context.Context, string, string, domain.UploadErrorKind) error { +func (f *fakeUploadsStore) FailUpload(_ context.Context, _, _ string, k domain.UploadErrorKind) error { + f.failedKinds = append(f.failedKinds, k) return nil }