Skip to content

Commit 326f749

Browse files
authored
Update Cloud Run logging test (GoogleCloudPlatform#7058)
## Description Fixes GoogleCloudPlatform#7002 Note: It's a good idea to open an issue first for discussion. ## Checklist - [ ] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md) - [ ] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#readme-file) - [ ] **Tests** pass: `nox -s py-3.6` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] **Lint** pass: `nox -s lint` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones) - [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones) - [ ] Please **merge** this PR for me once it is approved. - [ ] This sample adds a new sample directory, and I updated the [CODEOWNERS file](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/.github/CODEOWNERS) with the codeowners for this sample
1 parent 2b5cf09 commit 326f749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run/logging-manual/e2e_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_end_to_end(service_url_auth_token, deployed_service):
178178
resource_names = [f"projects/{PROJECT}"]
179179
# We add timestamp for making the query faster.
180180
now = datetime.datetime.now(datetime.timezone.utc)
181-
filter_date = now - datetime.timedelta(minutes=1)
181+
filter_date = now - datetime.timedelta(minutes=3)
182182
filters = (
183183
f"timestamp>=\"{filter_date.isoformat('T')}\" "
184184
"resource.type=cloud_run_revision "

0 commit comments

Comments
 (0)