2
0
mirror of synced 2025-02-23 22:28:11 +00:00

Add missing error return check in benchmark

This commit is contained in:
Matt Joiner 2016-08-30 14:09:01 +10:00
parent 8fd5942722
commit 6f7623ff3c

View File

@ -563,7 +563,8 @@ func BenchmarkAddLargeTorrent(b *testing.B) {
cfg.DisableTCP = true
cfg.DisableUTP = true
cfg.ListenAddr = "redonk"
cl, _ := NewClient(&cfg)
cl, err := NewClient(&cfg)
require.NoError(b, err)
defer cl.Close()
for range iter.N(b.N) {
t, err := cl.AddTorrentFromFile("testdata/bootstrap.dat.torrent")