Skip to content

Commit

Permalink
store, tests/main/econnreset: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chipaca committed Jun 15, 2018
1 parent c8e7384 commit 0c2cd7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ func (s *Store) Download(ctx context.Context, name string, targetPath string, do
// If hashsum is incorrect retry once
if _, ok := err.(HashError); ok {
logger.Debugf("Hashsum error on download: %v", err.Error())
logger.Debugf("Truncating an trying again from scratch.")
logger.Debugf("Truncating and trying again from scratch.")
err = w.Truncate(0)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion tests/main/econnreset/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ execute: |
exit 1
fi
if [ "$(find . -name test-snapd-huge_*.snap )" -gt 1 ]; then
if [ -n "$(find . -name 'test-snapd-huge_*.snap')" ]; then
echo "File fully downloaded before the test could act"
echo "Test broken"
echo "end: $(date)"
Expand Down

0 comments on commit 0c2cd7f

Please sign in to comment.