ruby-changes:63551
From: Benoit <ko1@a...>
Date: Mon, 9 Nov 2020 00:50:02 +0900 (JST)
Subject: [ruby-changes:63551] b8eb08e096 (master): Fix TestFiberMutex#test_condition_variable assertion
https://git.ruby-lang.org/ruby.git/commit/?id=b8eb08e096 From b8eb08e0963cff5f3963780b68514c365613609f Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Sun, 8 Nov 2020 16:49:03 +0100 Subject: Fix TestFiberMutex#test_condition_variable assertion * Now that it works correctly. diff --git a/test/fiber/test_mutex.rb b/test/fiber/test_mutex.rb index 30e92b4..0842427 100644 --- a/test/fiber/test_mutex.rb +++ b/test/fiber/test_mutex.rb @@ -108,7 +108,7 @@ class TestFiberMutex < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/fiber/test_mutex.rb#L108 signalled = 0 - thread = Thread.new do + Thread.new do scheduler = Scheduler.new Fiber.set_scheduler scheduler @@ -132,11 +132,9 @@ class TestFiberMutex < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/fiber/test_mutex.rb#L132 end scheduler.run - end - - thread.join + end.join - assert_operator signalled, :>, 1 + assert_equal 3, signalled end def test_queue -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/