Skip to content

Commit

Permalink
[unrelated] vodtester: Delete assets after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Jul 18, 2022
1 parent 1bcaa99 commit 60320af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/app/vodtester/vodtester_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (vt *vodTester) Start(fileUrl string, taskPollDuration time.Duration) (int,
glog.Errorf("Error importing asset err=%v", err)
return 242, fmt.Errorf("error importing asset: %w", err)
}
defer vt.lapi.DeleteAsset(importAsset.ID)
glog.Infof("Importing asset taskId=%s outputAssetId=%s", importTask.ID, importAsset.ID)

startTime = time.Now()
Expand Down Expand Up @@ -85,6 +86,7 @@ func (vt *vodTester) Start(fileUrl string, taskPollDuration time.Duration) (int,
glog.Errorf("Error transcoding asset id=%s, err=%v", importAsset.ID, err)
return 242, fmt.Errorf("error transcoding asset id=%s: %w", importAsset.ID, err)
}
defer vt.lapi.DeleteAsset(transcodeAsset.ID)
glog.Infof("Asset imported id=%s, transcoding taskId=%s outputAssetId=%s", importAsset.ID, transcodeTask.ID, transcodeAsset.ID)

startTime = time.Now()
Expand Down

0 comments on commit 60320af

Please sign in to comment.