1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

Fix typos and cleanup

This commit is contained in:
Dimitris Apostolou
2020-04-18 17:45:01 +03:00
parent ed4812b57a
commit 1e437c7e97
64 changed files with 105 additions and 105 deletions

View File

@ -87,7 +87,7 @@ func TestAddMultipleGCLive(t *testing.T) {
// GC shouldn't get the lock until after the file is completely added
select {
case <-gc1started:
t.Fatal("gc shouldnt have started yet")
t.Fatal("gc shouldn't have started yet")
default:
}
@ -118,7 +118,7 @@ func TestAddMultipleGCLive(t *testing.T) {
select {
case <-gc2started:
t.Fatal("gc shouldnt have started yet")
t.Fatal("gc shouldn't have started yet")
default:
}
@ -192,7 +192,7 @@ func TestAddGCLive(t *testing.T) {
case o := <-out:
addedHashes[o.(*coreiface.AddEvent).Path.Cid().String()] = struct{}{}
case <-addDone:
t.Fatal("add shouldnt complete yet")
t.Fatal("add shouldn't complete yet")
}
var gcout <-chan gc.Result
@ -202,14 +202,14 @@ func TestAddGCLive(t *testing.T) {
gcout = gc.GC(context.Background(), node.Blockstore, node.Repo.Datastore(), node.Pinning, nil)
}()
// gc shouldnt start until we let the add finish its current file.
// gc shouldn't start until we let the add finish its current file.
if _, err := pipew.Write([]byte("some data for file b")); err != nil {
t.Fatal(err)
}
select {
case <-gcstarted:
t.Fatal("gc shouldnt have started yet")
t.Fatal("gc shouldn't have started yet")
default:
}