Skip to content

Commit 615f715

Browse files
committed
Use existing search attribute, the server hits limit
1 parent 01d9af8 commit 615f715

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/worker/test_workflow.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8422,8 +8422,6 @@ def decrypt(self, data: bytes) -> bytes:
84228422

84238423
@workflow.defn
84248424
class SearchAttributeCodecParentWorkflow:
8425-
text_attribute = SearchAttributeKey.for_text(f"text_sa")
8426-
84278425
@workflow.run
84288426
async def run(self, name: str) -> str:
84298427
print(
@@ -8447,7 +8445,7 @@ async def run(self, name: str) -> str:
84478445
async def test_search_attribute_codec(client: Client):
84488446
await ensure_search_attributes_present(
84498447
client,
8450-
SearchAttributeCodecParentWorkflow.text_attribute,
8448+
SearchAttributeWorkflow.text_attribute,
84518449
)
84528450

84538451
config = client.config()
@@ -8471,7 +8469,7 @@ async def test_search_attribute_codec(client: Client):
84718469
search_attributes=TypedSearchAttributes(
84728470
[
84738471
SearchAttributePair(
8474-
SearchAttributeCodecParentWorkflow.text_attribute, "test_text"
8472+
SearchAttributeWorkflow.text_attribute, "test_text"
84758473
)
84768474
]
84778475
),

0 commit comments

Comments
 (0)