1
0

Other(test): Don't check user agent immediately

This commit is contained in:
James Houlahan
2022-10-20 14:16:25 +02:00
parent c20143c212
commit 395e7b54f6

View File

@ -65,11 +65,13 @@ func (s *scenario) internetIsTurnedOn() error {
} }
func (s *scenario) theUserAgentIs(userAgent string) error { func (s *scenario) theUserAgentIs(userAgent string) error {
if haveUserAgent := s.t.bridge.GetCurrentUserAgent(); haveUserAgent != userAgent { return eventually(func() error {
return fmt.Errorf("have user agent %q, want %q", haveUserAgent, userAgent) if haveUserAgent := s.t.bridge.GetCurrentUserAgent(); haveUserAgent != userAgent {
} return fmt.Errorf("have user agent %q, want %q", haveUserAgent, userAgent)
}
return nil return nil
})
} }
func (s *scenario) theHeaderInTheRequestToHasSetTo(method, path, key, value string) error { func (s *scenario) theHeaderInTheRequestToHasSetTo(method, path, key, value string) error {