Skip to content

Commit

Permalink
Integration tests: remove unused helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasw committed Jun 9, 2016
1 parent 4418662 commit d703f1a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions integration_tests/base.py
Expand Up @@ -102,25 +102,3 @@ def touch(self, filename):
"""
call(['touch', os.path.join(SAMPLE_PROJECT, filename)])

def wait_for_output(self, text, wait_increment=.1, timeout=5):
"""Checks self.process.output for some specified output string."""
output = ''
total_time = 0

while total_time < timeout:
try:
output += self.process.output.get(timeout=wait_increment)
except Empty:
# To ensure that we aren't incrementing when we didn't have
# to wait, we only increment in the event of an Empty exception
# Technically, this implementation isn't accurate, but it's
# close enough and solves the problem of needing to empty the
# output queue with a separate loop before we start our get()
# calls.
total_time += wait_increment

if text in output:
return output

return output

0 comments on commit d703f1a

Please sign in to comment.