Skip to content

Commit

Permalink
OK Java, this means war
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Aug 18, 2021
1 parent a35e8bc commit 0f4a3ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/slo_logoutrequest_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ class RubySamlTest < Minitest::Test
# Java Floats behave differently than MRI
java = %w[jruby truffleruby].include?(ENV['RUBY_ENGINE'])

puts ENV['RUBY_ENGINE'].inspect

logout_request.soft = true
logout_request.document.root.attributes['NotOnOrAfter'] = '2011-06-14T18:31:01.516Z'

Expand All @@ -196,6 +198,13 @@ class RubySamlTest < Minitest::Test
logout_request.options[:allowed_clock_drift] = 0.483
assert !logout_request.send(:validate_not_on_or_after)

puts 'HERE'
puts Time.now.inspect
puts Time.now.nsec.inspect
puts logout_request.document.root.attributes['NotOnOrAfter'].inspect
puts logout_request.document.root.attributes['NotOnOrAfter'].nsec.inspect
puts 0.485.inspect

logout_request.options[:allowed_clock_drift] = java ? 0.485 : 0.484
assert logout_request.send(:validate_not_on_or_after)

Expand Down

0 comments on commit 0f4a3ac

Please sign in to comment.