internal/testutil/spec.go | 6 +++--- storage/boltdb.go | 4 ++-- diff --git a/internal/testutil/spec.go b/internal/testutil/spec.go index 63c909a46a8eda2af951f4968422ade8f255cadd..b2daa48bcbe7293a8bbb22d879a376e80d8c9a48 100644 --- a/internal/testutil/spec.go +++ b/internal/testutil/spec.go @@ -5,7 +5,7 @@ "io" "io/ioutil" "strings" - "github.com/anacrolix/missinggo/assert" + "github.com/anacrolix/missinggo/expect" "github.com/anacrolix/torrent/bencode" "github.com/anacrolix/torrent/metainfo" @@ -48,7 +48,7 @@ } err := info.GeneratePieces(func(fi metainfo.FileInfo) (io.ReadCloser, error) { return ioutil.NopCloser(strings.NewReader(t.GetFile(strings.Join(fi.Path, "/")).Data)), nil }) - assert.Nil(err) + expect.Nil(err) return info } @@ -56,6 +56,6 @@ func (t *Torrent) Metainfo(pieceLength int64) *metainfo.MetaInfo { mi := metainfo.MetaInfo{} var err error mi.InfoBytes, err = bencode.Marshal(t.Info(pieceLength)) - assert.Nil(err) + expect.Nil(err) return &mi } diff --git a/storage/boltdb.go b/storage/boltdb.go index 6586ff0e3c009628554b093f8964bb615d14819c..56c711ffee5edd34f6ac6e4a7759507a421e8da3 100644 --- a/storage/boltdb.go +++ b/storage/boltdb.go @@ -5,7 +5,7 @@ "encoding/binary" "path/filepath" "time" - "github.com/anacrolix/missinggo/assert" + "github.com/anacrolix/missinggo/expect" "github.com/boltdb/bolt" "github.com/anacrolix/torrent/metainfo" @@ -30,7 +30,7 @@ func NewBoltDB(filePath string) ClientImpl { db, err := bolt.Open(filepath.Join(filePath, "bolt.db"), 0600, &bolt.Options{ Timeout: time.Second, }) - assert.Nil(err) + expect.Nil(err) db.NoSync = true return &boltDBClient{db} }