Skip to content

Commit 30c68e0

Browse files
committed
test_tag/test_tags method assert fix in association tests
1 parent b28bb31 commit 30c68e0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/integ/sagemaker/lineage/test_association.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ def test_set_tag(association_obj, sagemaker_session):
6666
if actual_tags:
6767
break
6868
time.sleep(1)
69-
assert len(actual_tags) == 1
69+
# When sagemaker-client-config endpoint-url is passed as argument to hit beta,
70+
# length of actual tags will be 2
71+
assert len(actual_tags) > 0
7072
assert actual_tags[0] == tag
7173

7274

@@ -81,5 +83,7 @@ def test_tags(association_obj, sagemaker_session):
8183
if actual_tags:
8284
break
8385
time.sleep(1)
84-
assert len(actual_tags) == 1
85-
assert actual_tags == tags
86+
# When sagemaker-client-config endpoint-url is passed as argument to hit beta,
87+
# length of actual tags will be 2
88+
assert len(actual_tags) > 0
89+
assert [actual_tags[-1]] == tags

0 commit comments

Comments
 (0)