Skip to content

Commit

Permalink
[oracle][test] unfortunately we have to wait for stats to populate (f…
Browse files Browse the repository at this point in the history
…or now).

[oracle] lint.
  • Loading branch information
truthbk committed Aug 28, 2017
1 parent f748740 commit 7690f75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion oracle/test_oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# stdlib
import logging
import time

# 3p
from nose.plugins.attrib import attr
Expand Down Expand Up @@ -84,7 +85,7 @@ def setUp(self):
cursor.execute("truncate table TestTempTable")

# insert
rows = [ { u"value" : n } for n in range(250) ]
rows = [{u"value": n} for n in range(250)]
cursor.arraysize = 100
statement = "insert into TestTempTable (IntCol) values (:value)"
cursor.executemany(statement, rows)
Expand All @@ -94,6 +95,9 @@ def setUp(self):
cursor.execute("select count(*) from TestTempTable")
_, = cursor.fetchone()

# wait to populate
time.sleep(90)

def testOracle(self):
self.run_check_twice(CONFIG)

Expand Down

0 comments on commit 7690f75

Please sign in to comment.