Skip to content

Commit 4675d57

Browse files
committed
fix test
1 parent ff72d74 commit 4675d57

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/auth/test_static_credentials.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import pytest
22
import ydb
33

4-
from concurrent.futures import TimeoutError
5-
64

75
USERNAME = "root"
86
PASSWORD = "1234"
@@ -41,9 +39,9 @@ def test_static_credentials_wrong_creds(endpoint, database):
4139
driver_config = ydb.DriverConfig(
4240
endpoint,
4341
database,
44-
credentials=ydb.StaticCredentials.from_user_password(USERNAME, PASSWORD*2),
42+
credentials=ydb.StaticCredentials.from_user_password(USERNAME, PASSWORD * 2),
4543
)
4644

47-
with pytest.raises(TimeoutError):
45+
with pytest.raises(ydb.ConnectionFailure):
4846
with ydb.Driver(driver_config=driver_config) as driver:
49-
driver.wait(5)
47+
driver.wait(5, fail_fast=True)

0 commit comments

Comments
 (0)