Skip to content

Commit

Permalink
Fix issue when --no-truncate is not given
Browse files Browse the repository at this point in the history
  • Loading branch information
gvalkov committed Oct 14, 2018
1 parent 836592a commit 2c0fb4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/logsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ async def logwriter(args):
coros = []
for fn in args.files:
w = writer(fn, gen, lock=lock, rate=args.rate, update_msec=args.update_msec)
coros.append(w)

if not args.no_truncate:
t = truncater(fn, lock=lock, truncate_msec=args.truncate_msec)
coros.append(w)
coros.append(t)
coros.append(t)

await asyncio.gather(*coros)

Expand Down

0 comments on commit 2c0fb4e

Please sign in to comment.