tst_http2::flowControlServerSide

fix the bloody test for good - the idea to have a shared QNAM (shared
by test cases in this test) was somewhat wrong to start with.

Fixes: QTBUG-77053
Change-Id: I5755e96ec988e2dd546f527f3f902fc43914b0b7
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Timur Pocheptsov 2019-07-15 16:11:31 +02:00
parent 2a15ec72c0
commit 7a61cb46e6

View File

@ -70,6 +70,8 @@ class tst_Http2 : public QObject
public: public:
tst_Http2(); tst_Http2();
~tst_Http2(); ~tst_Http2();
public slots:
void init();
private slots: private slots:
// Tests: // Tests:
void singleRequest_data(); void singleRequest_data();
@ -173,6 +175,11 @@ tst_Http2::~tst_Http2()
} }
} }
void tst_Http2::init()
{
manager.clearConnectionCache();
}
void tst_Http2::singleRequest_data() void tst_Http2::singleRequest_data()
{ {
QTest::addColumn<QNetworkRequest::Attribute>("h2Attribute"); QTest::addColumn<QNetworkRequest::Attribute>("h2Attribute");