mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8453: Fix DB result check in test_VirtualRouter_alerts.py
Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com> This closes #239
This commit is contained in:
parent
8c929d58c7
commit
fcd74d5fef
|
|
@ -203,9 +203,9 @@ class TestVRServiceFailureAlerting(cloudstackTestCase):
|
|||
# 30minutes)
|
||||
|
||||
qresultset = self.dbclient.execute(
|
||||
"select id from alert where subject \
|
||||
= '%s' ORDER BY id DESC LIMIT 1;" %
|
||||
str(alertSubject))
|
||||
"select id from alert where subject like\
|
||||
'%{0}%' ORDER BY id DESC LIMIT 1;".format(
|
||||
str(alertSubject)))
|
||||
self.assertNotEqual(
|
||||
len(qresultset),
|
||||
0,
|
||||
|
|
|
|||
Loading…
Reference in New Issue