features/step_definitions/stats_steps.rb in trema-0.2.5 vs features/step_definitions/stats_steps.rb in trema-0.2.6

- old
+ new

@@ -1,8 +1,6 @@ # -# Author: Yasuhito Takamiya <yasuhito@gmail.com> -# # Copyright (C) 2008-2012 NEC Corporation # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2, as # published by the Free Software Foundation. @@ -17,18 +15,20 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Then /^the total number of tx packets should be:$/ do | table | + sleep 1 table.hashes[ 0 ].each_pair do | host, n | - count_packets( `./trema show_stats #{ host } --tx` ).should == n.to_i + count_packets( `trema show_stats #{ host } --tx` ).should == n.to_i end end Then /^the total number of rx packets should be:$/ do | table | + sleep 1 table.hashes[ 0 ].each_pair do | host, n | - count_packets( `./trema show_stats #{ host } --rx` ).should == n.to_i + count_packets( `trema show_stats #{ host } --rx` ).should == n.to_i end end ### Local variables: