Changeset 45b0a24 in mod_gnutls for test/mgstest/tests.py


Ignore:
Timestamp:
Dec 19, 2019, 6:35:55 AM (11 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
09774e2
Parents:
d5c572b
Message:

TestRequest?: Raise exception if expected connection reset didn't occur

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mgstest/tests.py

    rd5c572b r45b0a24  
    143143            conn.request(self.method, self.path, headers=self.headers)
    144144            resp = conn.getresponse()
     145            if self.expects_conn_reset():
     146                raise TestExpectationFailed(
     147                    'Expected connection reset did not occur!')
    145148        except (BrokenPipeError, ConnectionResetError) as err:
    146149            if self.expects_conn_reset():
Note: See TracChangeset for help on using the changeset viewer.