mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
feat(BRIDGE-119): added support for Feature Flags
This commit is contained in:
@ -59,11 +59,19 @@ func (s *scenario) itFailsWithError(wantErr string) error {
|
||||
|
||||
func (s *scenario) internetIsTurnedOff() error {
|
||||
s.t.netCtl.SetCanDial(false)
|
||||
t, ok := (*s.t.rt).(*http.Transport)
|
||||
if ok {
|
||||
t.CloseIdleConnections()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *scenario) internetIsTurnedOn() error {
|
||||
s.t.netCtl.SetCanDial(true)
|
||||
t, ok := (*s.t.rt).(*http.Transport)
|
||||
if ok {
|
||||
t.CloseIdleConnections()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user