Skip to content

Commit

Permalink
Add more diagnostics to TestTrainingSession::unzip() test
Browse files Browse the repository at this point in the history
Because it's currently failing on GitHub Actions' Windows runners.
  • Loading branch information
pcolby committed Apr 15, 2023
1 parent 37320f8 commit b1d1a93
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/polar/v2/testtrainingsession.cpp
Expand Up @@ -2035,6 +2035,14 @@ void TestTrainingSession::unzip()
QVERIFY2(!expected.isEmpty(), "failed to load testdata");

const polar::v2::TrainingSession session(QLatin1String("ignored"));
QCOMPARE(session.unzip(data), expected); // Default initial buffer size.
QCOMPARE(session.unzip(data,1), expected); // Tiny initial buffer size.

qInfo() << "Default initial buffer size";
QByteArray unzipped = session.unzip(data);
QCOMPARE(unzipped.size(), expected.size());
QCOMPARE(unzipped, expected);

qInfo() << "Tiny intitial buffer size";
unzipped = session.unzip(data, 1);
QCOMPARE(unzipped.size(), expected.size());
QCOMPARE(unzipped, expected);
}

0 comments on commit b1d1a93

Please sign in to comment.