Skip to content

Commit 1bb8b85

Browse files
committed
Fix markers integration test
Forgot to test it with python3... Signed-off-by: Yves Bastide <yves@botify.com>
1 parent 0db2e60 commit 1bb8b85

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integration/test_markers.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def run_standalone(self, workflow_name, *args, **kwargs):
4848
@vcr.use_cassette
4949
def test_without_replays(self):
5050
events = self.run_standalone('tests.integration.workflow.MarkerWorkflow', False)
51-
marker_recorded = filter(
51+
marker_recorded = list(filter(
5252
lambda e: e['eventType'] == 'MarkerRecorded',
5353
events
54-
)
55-
expect(len(list(marker_recorded))).to.equal(3) # 3 markers
54+
))
55+
expect(len(marker_recorded)).to.equal(3) # 3 markers
5656
marker_details = [
5757
e['markerRecordedEventAttributes'].get('details') for e in marker_recorded
5858
]
@@ -65,11 +65,11 @@ def test_without_replays(self):
6565
@vcr.use_cassette
6666
def test_with_replays(self):
6767
events = self.run_standalone('tests.integration.workflow.MarkerWorkflow', True)
68-
marker_recorded = filter(
68+
marker_recorded = list(filter(
6969
lambda e: e['eventType'] == 'MarkerRecorded',
7070
events
71-
)
72-
expect(len(list(marker_recorded))).to.equal(3) # 3 markers
71+
))
72+
expect(len((marker_recorded))).to.equal(3) # 3 markers
7373
marker_details = [
7474
e['markerRecordedEventAttributes'].get('details') for e in marker_recorded
7575
]

0 commit comments

Comments
 (0)