raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 2/4] test/test_last_data_recv: don't require posix_mq
  2023-12-29 17:50  4% [PATCH 0/4] lighter tests + rack 3 dependency fix Eric Wong
@ 2023-12-29 17:50  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-12-29 17:50 UTC (permalink / raw)
  To: raindrops-public

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)

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/4] lighter tests + rack 3 dependency fix
@ 2023-12-29 17:50  4% Eric Wong
  2023-12-29 17:50  7% ` [PATCH 2/4] test/test_last_data_recv: don't require posix_mq Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-12-29 17:50 UTC (permalink / raw)
  To: raindrops-public

Some things I noticed while preparing a release in the wake of
Ruby 3.3.

Eric Wong (4):
  tests: support running tests without rack||aggregate
  test/test_last_data_recv: don't require posix_mq
  extconf: disable optimization to speed up checks by ~3%
  gemspec: support rack 3.x

 ext/raindrops/extconf.rb    |  2 ++
 raindrops.gemspec           |  2 +-
 test/rack_unicorn.rb        |  3 +--
 test/test_last_data_recv.rb | 16 +++++++++++++++-
 test/test_watcher.rb        |  4 ++--
 5 files changed, 21 insertions(+), 6 deletions(-)

^ permalink raw reply	[relevance 4%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-12-29 17:50  4% [PATCH 0/4] lighter tests + rack 3 dependency fix Eric Wong
2023-12-29 17:50  7% ` [PATCH 2/4] test/test_last_data_recv: don't require posix_mq Eric Wong

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).