Subject: | Changed(?) default value of ZMQ_RATE breaks test |
I'm trying to build against 0MQ 2.1.4, and it seems that the default value of ZMQ_RATE (40,000)
is not the value expected by the Perl tests (100).
I've examined the 0MQ source, and it looks like the value of 40,000 is valid. Maybe iMatix
changed it. (I don't know; I'm new to 0MQ myself.)
Attached is a patch for the failing test.
Subject: | patch-t-100_basic.t.diff |
--- t/100_basic.t.orig 2011-04-06 20:08:51.000000000 -0700
+++ t/100_basic.t 2011-04-06 20:09:31.000000000 -0700
@@ -35,7 +35,7 @@
ok(!$sock->getsockopt(ZMQ_RCVMORE), "no ZMQ_RCVMORE set");
ok($sock->getsockopt(ZMQ_AFFINITY) == 0, "no ZMQ_AFFINITY");
- ok($sock->getsockopt(ZMQ_RATE) == 100, "ZMQ_RATE is at default 100");
+ ok($sock->getsockopt(ZMQ_RATE) == 40_000, "ZMQ_RATE is at default 40 000");
my $msg = $sock->recv();
ok(defined $msg, "received defined msg");