From: Matt Joiner Date: Mon, 22 Feb 2016 03:30:02 +0000 (+1100) Subject: Catch error creating new client in test X-Git-Tag: v1.0.0~857 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c03593bc0151b793293a852b8e6150820aebe378;p=btrtrc.git Catch error creating new client in test --- diff --git a/client_test.go b/client_test.go index 30b35232..213f082b 100644 --- a/client_test.go +++ b/client_test.go @@ -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)