tests hotfix
tests / windows (push) Failing after 14m37s
tests / linux (push) Successful in 2m11s
tests / macos (push) Successful in 1m14s
tests / package-smoke-linux (push) Skipped
tests / package-smoke-windows (push) Skipped
tests / package-smoke-macos (push) Skipped
tests / windows (push) Failing after 14m37s
tests / linux (push) Successful in 2m11s
tests / macos (push) Successful in 1m14s
tests / package-smoke-linux (push) Skipped
tests / package-smoke-windows (push) Skipped
tests / package-smoke-macos (push) Skipped
This commit is contained in:
1 parent
3ac2156ef2
commit
acd9334c16
5 files changed
+34
-6
No files matched your search
@@ -112,8 +112,11 @@ private slots:
|
||||
QCOMPARE(c.result.userType, QStringLiteral("msa"));
|
||||
QCOMPARE(c.result.clientToken, MsaAuthService::clientId());
|
||||
QVERIFY(!c.result.licenseMissing);
|
||||
const qint64 lifetime = before.secsTo(c.result.expiresAt);
|
||||
QVERIFY(lifetime > 3500 && lifetime <= 3600);
|
||||
// expiresAt = момент ответа login_with_xbox + expires_in; на медленном раннере
|
||||
// вся цепочка может идти дольше секунды, поэтому границы — до и после логина.
|
||||
const QDateTime after = QDateTime::currentDateTimeUtc();
|
||||
QVERIFY(c.result.expiresAt >= before.addSecs(3600));
|
||||
QVERIFY(c.result.expiresAt <= after.addSecs(3600));
|
||||
QVERIFY(progress.count() >= 5);
|
||||
|
||||
// Порядок шагов и формат запроса токена.
|
||||
|
||||
Reference in new issue
Block a user