We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f35d6 commit 0d78724Copy full SHA for 0d78724
iap/iap_test.py
@@ -15,6 +15,7 @@
15
"""Test script for Identity-Aware Proxy code samples."""
16
17
import os
18
+import time
19
20
import pytest
21
@@ -55,6 +56,12 @@ def test_main(capsys):
55
56
expected_audience = '/projects/{}/apps/{}'.format(
57
IAP_PROJECT_NUMBER, IAP_APP_ID)
58
59
+ # We see occational test failures when the system clock in our
60
+ # test VMs is incorrect. Sleeping 30 seconds to avoid the failure.
61
+ # https://github.com/GoogleCloudPlatform/python-docs-samples/issues/4467
62
+
63
+ time.sleep(30)
64
65
jwt_validation_result = validate_jwt.validate_iap_jwt(
66
iap_jwt, expected_audience)
67
0 commit comments