Skip to content

Commit 00d8071

Browse files
author
Takashi Matsuo
authored
[dialogflow] fix: marking a test with flaky (#3671)
fixes #3490
1 parent 431cf8c commit 00d8071

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dialogflow/cloud-client/create_document_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def setup_teardown():
4747
client.delete_knowledge_base(knowledge_base_path, force=True)
4848

4949

50+
@pytest.mark.flaky(max_runs=3, min_passes=1)
5051
def test_create_document(capsys):
5152
document_management.create_document(
5253
PROJECT_ID, pytest.KNOWLEDGE_BASE_ID, DOCUMENT_DISPLAY_NAME,

dialogflow/cloud-client/document_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def create_document(project_id, knowledge_base_id, display_name, mime_type,
6060

6161
response = client.create_document(knowledge_base_path, document)
6262
print('Waiting for results...')
63-
document = response.result(timeout=90)
63+
document = response.result(timeout=120)
6464
print('Created Document:')
6565
print(' - Display Name: {}'.format(document.display_name))
6666
print(' - Knowledge ID: {}'.format(document.name))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pytest==5.3.2
2+
flaky==3.6.1

0 commit comments

Comments
 (0)