Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed May 9, 2020
1 parent fb48c9e commit 3c28bc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cdprocessorutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (t *testGetter) getRecord(ctx context.Context, id int32) ([]*pbrc.Record, e
if t.adjusted[id] {
filepath = fmt.Sprintf("%v", id)
}
return []*pbrc.Record{&pbrc.Record{Release: &pbgd.Release{Id: id,
return []*pbrc.Record{&pbrc.Record{Release: &pbgd.Release{Id: id, InstanceId: id,
FormatQuantity: 1, Artists: []*pbgd.Artist{&pbgd.Artist{Name: "Hello"}},
Formats: []*pbgd.Format{&pbgd.Format{Name: "CD", Qty: "2"}},
Tracklist: []*pbgd.Track{&pbgd.Track{TrackType: pbgd.Track_TRACK, Position: "1"},
Expand All @@ -62,6 +62,7 @@ func (t *testGetter) getRecord(ctx context.Context, id int32) ([]*pbrc.Record, e
}

func (t *testGetter) updateRecord(ctx context.Context, id int32, cdpath, filepath string) error {
log.Printf("HERE %v", id)
if t.failUpdate {
return fmt.Errorf("Built to fail")
}
Expand Down

0 comments on commit 3c28bc4

Please sign in to comment.