forked from Silverfish/proton-bridge
GODT-1779: Remove go-imap
This commit is contained in:
16
internal/dialer/dialer_test.go
Normal file
16
internal/dialer/dialer_test.go
Normal file
@ -0,0 +1,16 @@
|
||||
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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user