Skip to content

Commit

Permalink
gc: typo's and other minor fixes
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
  • Loading branch information
kevina committed Feb 24, 2017
1 parent bfaa7e1 commit 9cfba7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pin/gc/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ func ColoredSet(ctx context.Context, pn pin.Pinner, ls dag.LinkService, bestEffo
}

if errors {
return nil, ErrCoundNotFetchAllLinks
return nil, ErrCouldNotFetchAllLinks
} else {
return gcs, nil
}
}

var ErrCoundNotFetchAllLinks = errors.New("garbage collection aborted: could not retrieve some links")
var ErrCouldNotFetchAllLinks = errors.New("garbage collection aborted: could not retrieve some links")

var ErrCouldNotDeleteSomeBlocks = errors.New("garbage collection incomplete: could not delete some blocks")

Expand Down
3 changes: 1 addition & 2 deletions test/sharness/t0087-repo-robust-gc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ test_gc_robust_part1() {
'

test_expect_success "corrupt the root node of 1MB file" '
ls -l "$HASH1FILE"
test -e "$HASH1FILE" &&
dd if=/dev/zero of="$HASH1FILE" count=1 bs=100 conv=notrunc
'
Expand All @@ -51,7 +50,7 @@ test_gc_robust_part1() {
grep -q "aborted" gc_err
'

test_expect_success "leaf nodes where not removed after gc" '
test_expect_success "leaf nodes were not removed after gc" '
ipfs cat $LEAF3 > /dev/null &&
ipfs cat $LEAF4 > /dev/null
'
Expand Down

0 comments on commit 9cfba7d

Please sign in to comment.