test(aria2): init aria2 client

This commit is contained in:
Noah Hsu
2022-06-22 19:36:49 +08:00
parent 3fe0a7bf6b
commit 2612cd7f1c
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,10 @@
package aria2
import "testing"
func TestConnect(t *testing.T) {
err := InitAria2Client("http://localhost:16800/jsonrpc", "secret", 3)
if err != nil {
t.Errorf("failed to init aria2: %+v", err)
}
}