raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <bofh@yhbt.net>
To: raindrops-public@yhbt.net
Subject: [PATCH 2/4] test/test_last_data_recv: don't require posix_mq
Date: Fri, 29 Dec 2023 17:50:19 +0000	[thread overview]
Message-ID: <20231229175021.17727-3-bofh@yhbt.net> (raw)
In-Reply-To: <20231229175021.17727-1-bofh@yhbt.net>

posix_mq is rarely installed, so don't force users to
have it in order to test or develop raindrops.
---
 test/test_last_data_recv.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/test_last_data_recv.rb b/test/test_last_data_recv.rb
index b1a5ac6..9643dc6 100644
--- a/test/test_last_data_recv.rb
+++ b/test/test_last_data_recv.rb
@@ -9,6 +9,14 @@
 require 'io/wait'
 
 class TestLastDataRecv < Test::Unit::TestCase
+  def setup
+    Raindrops::Aggregate::LastDataRecv.default_aggregate = []
+  end
+
+  def teardown
+    Raindrops::Aggregate::LastDataRecv.default_aggregate = nil
+  end
+
   def test_accept_nonblock_agg
     s = Socket.new(:INET, :STREAM, 0)
     s.listen(128)

  parent reply	other threads:[~2023-12-29 17:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-29 17:50 [PATCH 0/4] lighter tests + rack 3 dependency fix Eric Wong
2023-12-29 17:50 ` [PATCH 1/4] tests: support running tests without rack||aggregate Eric Wong
2023-12-29 17:50 ` Eric Wong [this message]
2023-12-29 17:50 ` [PATCH 3/4] extconf: disable optimization to speed up checks by ~3% Eric Wong
2023-12-29 17:50 ` [PATCH 4/4] gemspec: support rack 3.x Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/raindrops/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231229175021.17727-3-bofh@yhbt.net \
    --to=bofh@yhbt.net \
    --cc=raindrops-public@yhbt.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/raindrops.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).