Добавил логи

This commit is contained in:
2026-06-14 19:37:09 +03:00
parent d4bf8a8cad
commit 81ed58ecff
28 changed files with 379 additions and 121 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ func fakeQBittorrent(t *testing.T, info string) *httptest.Server {
func newClient(t *testing.T, url string) *Client {
t.Helper()
c, err := New(Config{URL: url, Username: "admin", Password: "secret"})
c, err := New(Config{URL: url, Username: "admin", Password: "secret"}, nil)
if err != nil {
t.Fatalf("New: %v", err)
}
@@ -107,7 +107,7 @@ func TestTorrents(t *testing.T) {
func TestLoginFailure(t *testing.T) {
srv := fakeQBittorrent(t, "[]")
c, err := New(Config{URL: srv.URL, Username: "admin", Password: "wrong"})
c, err := New(Config{URL: srv.URL, Username: "admin", Password: "wrong"}, nil)
if err != nil {
t.Fatal(err)
}