Use cmp_ok and is for comparison
@@ -59,8 +59,8 @@ $resp = `curl --silent -o /dev/stderr http://127.0.0.1:${server2_port}/server-st
$jresp = decode_json("$resp");
my $num_forwarded = $jresp->{'http3.packet-forwarded'};
-ok($num_forwarded > 0, "some packets were forwarded through event counter");
-ok($num_forwarded == $num_forwarded_received, "packets forwarded == packets received");
+cmp_ok($num_forwarded, '>', 0, "some packets were forwarded through event counter");
+is($num_forwarded, num_forwarded_received, "packets forwarded == packets received");
done_testing;
