Created
January 6, 2015 10:14
-
-
Save SebastianEdwards/8607bacc6a00fe98d11d to your computer and use it in GitHub Desktop.
Strange concurrent-ruby test behaviour
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'test/unit' | |
require 'concurrent' | |
Concurrent::Future.execute { 5 * 5 }.value # => Works | |
class SanityTest < Test::Unit::TestCase | |
def test_my_sanity | |
assert_equal(Concurrent::Future.execute { 5 * 5 }.value, 25) # => Doesn't work | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment