fix ClientRetrieve with CAR exporting & add test coverage

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
This commit is contained in:
Ignacio Hagopian
2020-03-30 11:08:20 -03:00
parent 34e9e9fe34
commit 8f89501118
3 changed files with 50 additions and 9 deletions
+1 -1
View File
@@ -377,7 +377,7 @@ func (a *API) ClientRetrieve(ctx context.Context, order api.RetrievalOrder, ref
unsubscribe()
if ref.IsCAR {
f, err := os.Open(ref.Path)
f, err := os.OpenFile(ref.Path, os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
return err
}