Skip to content

Commit

Permalink
apps.pcap.tap: fix selftest
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Apr 15, 2022
1 parent 2895647 commit c676980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/pcap/tap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function selftest ()
config.link(c, "source.output -> tap.input")
config.link(c, "tap.output -> sink.input")
app.configure(c)
while not app.app_table.source.done do app.breathe() end
app.main{done=function () return app.app_table.source.done end}

local n = 0
for packet, record in pcap.records(tmp) do n = n + 1 end
Expand Down

0 comments on commit c676980

Please sign in to comment.