forked from Silverfish/proton-bridge
17 lines
354 B
Go
17 lines
354 B
Go
package dialer
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"golang.org/x/net/http/httpproxy"
|
|
)
|
|
|
|
// skipIfProxyIsSet skips the tests if HTTPS proxy is set.
|
|
// Should be used for tests depending on proper certificate checks which
|
|
// is not possible under our CI setup.
|
|
func skipIfProxyIsSet(t *testing.T) {
|
|
if httpproxy.FromEnvironment().HTTPSProxy != "" {
|
|
t.SkipNow()
|
|
}
|
|
}
|