Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dialogflow/cloud-client/create_document_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def setup_teardown():
client.delete_knowledge_base(knowledge_base_path, force=True)


@pytest.mark.flaky(max_runs=3, min_passes=1)
def test_create_document(capsys):
document_management.create_document(
PROJECT_ID, pytest.KNOWLEDGE_BASE_ID, DOCUMENT_DISPLAY_NAME,
Expand Down
2 changes: 1 addition & 1 deletion dialogflow/cloud-client/document_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def create_document(project_id, knowledge_base_id, display_name, mime_type,

response = client.create_document(knowledge_base_path, document)
print('Waiting for results...')
document = response.result(timeout=90)
document = response.result(timeout=120)
print('Created Document:')
print(' - Display Name: {}'.format(document.display_name))
print(' - Knowledge ID: {}'.format(document.name))
Expand Down
1 change: 1 addition & 0 deletions dialogflow/cloud-client/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest==5.3.2
flaky==3.6.1