Skip to content

Commit 3ba5d79

Browse files
authored
fix test for lines with uuid (crowdsec 1.5+) (#72)
1 parent 88a0ef4 commit 3ba5d79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/bouncer/test_custom_bouncer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ def test_add_decisions(bouncer_with_lapi):
195195

196196
for i, line in enumerate(lines, start=1):
197197
line = json.loads(line)
198-
del line['duration']
198+
line.pop('duration', None)
199+
line.pop('uuid', None)
199200
assert line == {
200201
'action': 'add',
201202
'id': i,

0 commit comments

Comments
 (0)