mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(actions): cross platform watch dir file handling (#458)
* chore: update deps * fix(actions): cross-platform file handling * fix(qbittorrent): unrelated failing test
This commit is contained in:
parent
8b96f29f37
commit
bbb8d2fe6e
22 changed files with 129 additions and 123 deletions
|
@ -2,9 +2,9 @@ package torznab
|
|||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
|
@ -23,7 +23,7 @@ import (
|
|||
// return
|
||||
// }
|
||||
// }
|
||||
// payload, err := ioutil.ReadFile("testdata/torznab_response.xml")
|
||||
// payload, err := os.ReadFile("testdata/torznab_response.xml")
|
||||
// if err != nil {
|
||||
// http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
// return
|
||||
|
@ -85,7 +85,7 @@ func TestClient_GetCaps(t *testing.T) {
|
|||
return
|
||||
}
|
||||
|
||||
payload, err := ioutil.ReadFile("testdata/caps_response.xml")
|
||||
payload, err := os.ReadFile("testdata/caps_response.xml")
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue