libricochet-go/connectivity/torProvider_test.go

25 lines
340 B
Go
Raw Normal View History

package connectivity
import (
"fmt"
"testing"
"time"
)
func TestTorProvider(t *testing.T) {
acn, err := StartTor(".", "")
if err != nil {
t.Error(err)
}
progress := 0
status := ""
for progress < 100 {
progress, status = acn.GetBootstrapStatus()
fmt.Printf("%v %v\n", progress, status)
time.Sleep(100)
}
acn.Close()
}