Skip to content

Commit 943e659

Browse files
author
Matt Sokoloff
committed
update test
1 parent 4fdb69a commit 943e659

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/integration/test_client_errors.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import time
44
import pytest
5+
from google.api_core.exceptions import RetryError
56

67
from labelbox import Project, Dataset, User
78
import labelbox.client
@@ -43,12 +44,12 @@ def test_semantic_error(client):
4344

4445

4546
def test_timeout_error(client, project):
46-
with pytest.raises(labelbox.exceptions.TimeoutError) as excinfo:
47-
query_str = """query getOntology {
48-
project (where: {id: %s}) {
49-
ontology {
50-
normalized
51-
}
47+
with pytest.raises(RetryError) as excinfo:
48+
query_str = """query getOntology {
49+
project (where: {id: %s}) {
50+
ontology {
51+
normalized
52+
}
5253
}
5354
} """ % (project.uid)
5455

0 commit comments

Comments
 (0)