2020-05-14 23:30:45 -04:00
|
|
|
package checki2pcontrol
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestCheckI2PControlEcho(t *testing.T) {
|
2020-05-15 01:29:02 -04:00
|
|
|
if works, err := CheckI2PControlEcho("", "", "", ""); works {
|
2020-05-14 23:30:45 -04:00
|
|
|
t.Log("Proxy success")
|
|
|
|
} else if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
} else {
|
|
|
|
t.Fatal("Proxy not found")
|
|
|
|
}
|
2020-05-15 01:29:02 -04:00
|
|
|
if host, port, path, err := GetDefaultI2PControlPath(); err != nil {
|
|
|
|
t.Fatal("I2PControl Not found")
|
|
|
|
} else {
|
|
|
|
t.Log("I2Pcontrol found at", host, port, path)
|
|
|
|
}
|
2020-05-14 23:30:45 -04:00
|
|
|
}
|