Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
Fixing future bug for test_base
Browse files Browse the repository at this point in the history
  • Loading branch information
wengzilla committed Jun 15, 2012
1 parent 7733304 commit e456dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/storage_test_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_participant_storage

assert_equal @storage.alternative_start_time(exp, alt), start

future = Bandit::DateHour.new(Date.today, Time.now.hour+3)
future = Bandit::DateHour.new(Date.today+1, Time.now.hour)
@storage.incr_participants(exp, alt, 123, future)
assert_equal @storage.participant_count(exp, alt, future), 123

Expand All @@ -35,7 +35,7 @@ def test_conversion_storage
assert_equal @storage.conversion_count(exp, alt), 3
assert_equal @storage.conversion_count(exp, alt, Bandit::DateHour.now), 3

future = Bandit::DateHour.new(Date.today, Time.now.hour+3)
future = Bandit::DateHour.new(Date.today+1, Time.now.hour)
@storage.incr_conversions(exp, alt, 123, future)
assert_equal @storage.conversion_count(exp, alt, future), 123

Expand Down

0 comments on commit e456dda

Please sign in to comment.