Skip to content

Commit 9cfba7d

Browse files
committed
gc: typo's and other minor fixes
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
1 parent bfaa7e1 commit 9cfba7d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pin/gc/gc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ func ColoredSet(ctx context.Context, pn pin.Pinner, ls dag.LinkService, bestEffo
147147
}
148148

149149
if errors {
150-
return nil, ErrCoundNotFetchAllLinks
150+
return nil, ErrCouldNotFetchAllLinks
151151
} else {
152152
return gcs, nil
153153
}
154154
}
155155

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

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

test/sharness/t0087-repo-robust-gc.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ test_gc_robust_part1() {
4040
'
4141

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

54-
test_expect_success "leaf nodes where not removed after gc" '
53+
test_expect_success "leaf nodes were not removed after gc" '
5554
ipfs cat $LEAF3 > /dev/null &&
5655
ipfs cat $LEAF4 > /dev/null
5756
'

0 commit comments

Comments
 (0)