Catch error creating new client in test

This commit is contained in:
Matt Joiner 2016-02-22 14:30:02 +11:00
parent c371502cb3
commit c03593bc01
1 changed files with 2 additions and 1 deletions

View File

@ -441,7 +441,8 @@ func TestReadaheadPieces(t *testing.T) {
}
func TestMergingTrackersByAddingSpecs(t *testing.T) {
cl, _ := NewClient(&TestingConfig)
cl, err := NewClient(&TestingConfig)
require.NoError(t, err)
defer cl.Close()
spec := TorrentSpec{}
T, new, _ := cl.AddTorrentSpec(&spec)