Skip to content

Commit fde4634

Browse files
use normalised state in e2e test
Signed-off-by: varun-edachali-dbx <[email protected]>
1 parent aa7207e commit fde4634

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/e2e/test_driver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
OperationalError,
3131
RequestError,
3232
)
33+
from databricks.sql.backend.types import CommandState
3334
from tests.e2e.common.predicates import (
3435
pysql_has_version,
3536
pysql_supports_arrow,
@@ -939,7 +940,7 @@ def test_result_set_close(self):
939940

940941
result_set.close()
941942

942-
assert result_set.op_state == result_set.backend.CLOSED_OP_STATE
943+
assert result_set.op_state == CommandState.CLOSED
943944
assert result_set.op_state != initial_op_state
944945

945946
# Closing the result set again should be a no-op and not raise exceptions

0 commit comments

Comments
 (0)