Increased tolerance of test.
This commit is contained in:
parent
44d889b90c
commit
2a383afb47
1 changed files with 3 additions and 3 deletions
|
@ -187,19 +187,19 @@ class SessionCollectionsTest < ActiveSupport::TestCase
|
||||||
assert(agent1.save, 'create/update agent1')
|
assert(agent1.save, 'create/update agent1')
|
||||||
|
|
||||||
assets = {}
|
assets = {}
|
||||||
client1 = Sessions::Backend::Collections::Group.new(agent1, assets, false, '123-1', 2)
|
client1 = Sessions::Backend::Collections::Group.new(agent1, assets, false, '123-1', 4)
|
||||||
data = client1.push
|
data = client1.push
|
||||||
assert(data[:collection][:Group][groups.first.id])
|
assert(data[:collection][:Group][groups.first.id])
|
||||||
assert(data[:assets][:Group][groups.first.id])
|
assert(data[:assets][:Group][groups.first.id])
|
||||||
travel 10.seconds
|
travel 10.seconds
|
||||||
|
|
||||||
client1 = Sessions::Backend::Collections::Group.new(agent1, assets, false, '123-1', 2)
|
client1 = Sessions::Backend::Collections::Group.new(agent1, assets, false, '123-1', 4)
|
||||||
data = client1.push
|
data = client1.push
|
||||||
assert(data[:collection][:Group][groups.first.id])
|
assert(data[:collection][:Group][groups.first.id])
|
||||||
assert(data[:assets][:Group][groups.first.id])
|
assert(data[:assets][:Group][groups.first.id])
|
||||||
|
|
||||||
travel 2.minutes
|
travel 2.minutes
|
||||||
client1 = Sessions::Backend::Collections::Group.new(agent1, assets, false, '123-1', 2)
|
client1 = Sessions::Backend::Collections::Group.new(agent1, assets, false, '123-1', 4)
|
||||||
data = client1.push
|
data = client1.push
|
||||||
assert(data[:collection][:Group][groups.first.id])
|
assert(data[:collection][:Group][groups.first.id])
|
||||||
assert_nil(data[:assets][:Group])
|
assert_nil(data[:assets][:Group])
|
||||||
|
|
Loading…
Reference in a new issue