2
0
mirror of synced 2025-02-24 14:48:27 +00:00

Catch error creating client in tests

This commit is contained in:
Matt Joiner 2016-02-26 22:10:09 +11:00
parent aa76d13ffd
commit 5cc8d8a652

View File

@ -319,7 +319,8 @@ func testClientTransfer(t *testing.T, ps testClientTransferParams) {
return store.OpenTorrentData(mi) return store.OpenTorrentData(mi)
} }
}() }()
leecher, _ := NewClient(&cfg) leecher, err := NewClient(&cfg)
require.NoError(t, err)
defer leecher.Close() defer leecher.Close()
if ps.ExportClientStatus { if ps.ExportClientStatus {
testutil.ExportStatusWriter(leecher, "l") testutil.ExportStatusWriter(leecher, "l")