Commit d46054be authored by Sebastien Duthil's avatar Sebastien Duthil

[fix] filter sql request randomly ordered

parent edcebf01
......@@ -56,7 +56,8 @@ class TestStatAgentPeriodicDAO(DAOTestCase):
result = (self.session.query(StatAgentPeriodic)
.filter(StatAgentPeriodic.time == period_start)[0])
.filter(StatAgentPeriodic.time == period_start)
.filter(StatAgentPeriodic.agent_id == agent_id_1)[0])
self.assertEqual(result.login_time, timedelta(minutes=50))
except LookupError:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment