Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux committed Jun 11, 2021
1 parent 978b795 commit fd66edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/cdn/storage/storageunit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func TestDeduplicationCrossType(t *testing.T) {
Type: sdk.CDNTypeItemRunResult,
Status: sdk.CDNStatusItemCompleted,
}
iuArtifact, err := cdnUnits.NewItemUnit(ctx, cdnUnits.Buffers[1], itemArtifact)
iuArtifact, err := cdnUnits.NewItemUnit(ctx, cdnUnits.FileBuffer(), itemArtifact)
require.NoError(t, err)

// Create Destination Writer
Expand All @@ -188,7 +188,7 @@ func TestDeduplicationCrossType(t *testing.T) {
itemArtifact.MD5 = md5S
itemArtifact.Size = 0
itemArtifact.Status = sdk.CDNStatusItemCompleted
iuArtifact, err = cdnUnits.NewItemUnit(ctx, cdnUnits.Buffers[1], itemArtifact)
iuArtifact, err = cdnUnits.NewItemUnit(ctx, cdnUnits.FileBuffer(), itemArtifact)
require.NoError(t, err)
require.NoError(t, item.Insert(ctx, m, db, itemArtifact))
defer func() {
Expand Down

0 comments on commit fd66edc

Please sign in to comment.