Skip to content

Commit

Permalink
IWF-357: Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolczynski committed Jan 3, 2025
1 parent fac26e7 commit 0dceb5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions iwf/tests/test_internal_channel.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import inspect
import time
import unittest

from iwf.client import Client
from iwf.command_request import CommandRequest, InternalChannelCommand
Expand Down Expand Up @@ -132,9 +133,9 @@ def get_communication_schema(self) -> CommunicationSchema:
registry.add_workflow(wf)
client = Client(registry)

class TestConditionalComplete(unittest.TestCase):
def test_internal_channel_workflow(self):
wf_id = f"{inspect.currentframe().f_code.co_name}-{time.time_ns()}"

def test_internal_channel_workflow():
wf_id = f"{inspect.currentframe().f_code.co_name}-{time.time_ns()}"

client.start_workflow(InternalChannelWorkflow, wf_id, 100, None)
client.get_simple_workflow_result_with_wait(wf_id, None)
client.start_workflow(InternalChannelWorkflow, wf_id, 100, None)
client.get_simple_workflow_result_with_wait(wf_id, None)
2 changes: 1 addition & 1 deletion iwf/type_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _do_get_type(self, name: str) -> Optional[type]:

prefixes = self._prefix_to_type_store.keys()

first = next((prefix for prefix in prefixes if prefix.startswith(name)), None)
first = next((prefix for prefix in prefixes if name.startswith(prefix)), None)

if first is None:
return None
Expand Down

0 comments on commit 0dceb5c

Please sign in to comment.