]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Catch error creating new client in test
authorMatt Joiner <anacrolix@gmail.com>
Mon, 22 Feb 2016 03:30:02 +0000 (14:30 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 22 Feb 2016 03:30:02 +0000 (14:30 +1100)
client_test.go

index 30b35232645012538d2774d2de6e2e3333408d7c..213f082b606a26c667e31ea0fa92db8e7bd145d6 100644 (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)