ooni-probe-cli/internal/engine/session_psiphon_test.go
Simone Basso 6924d1ad81
refactor: only use shaping dialer for ndt7 and dash (#754)
See https://github.com/ooni/probe/issues/2112 for context.

While there, run `go fix -fix buildtag ./...`
2022-05-24 18:23:42 +02:00

26 lines
435 B
Go

//go:build ooni_psiphon_config
package engine
import (
"context"
"testing"
)
func TestSessionEmbeddedPsiphonConfig(t *testing.T) {
s := &Session{}
data, err := s.FetchPsiphonConfig(context.Background())
if err != nil {
t.Fatal(err)
}
if data == nil {
t.Fatal("expected non-nil data here")
}
}
func TestCheckEmbeddedPsiphonConfig(t *testing.T) {
if err := CheckEmbeddedPsiphonConfig(); err != nil {
t.Fatal(err)
}
}