feat(BRIDGE-119): added support for Feature Flags

This commit is contained in:
Atanas Janeshliev
2024-08-07 17:04:54 +02:00
parent 3d53bf7477
commit e290cd308b
11 changed files with 377 additions and 1 deletions

View File

@ -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
}