Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Jun 23, 2016
1 parent eb5e437 commit 2e1a1fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/run_tests/dockerjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class DockerJob:

def __init__(self, spec):
self._spec = spec
self._job = jobset.Job(spec, bin_hash=None, newline_on_success=True, travis=True, add_env={})
self._job = jobset.Job(spec, newline_on_success=True, travis=True, add_env={})
self._container_name = spec.container_name

def mapped_port(self, port):
Expand All @@ -118,4 +118,4 @@ def kill(self, suppress_failure=False):

def is_running(self):
"""Polls a job and returns True if given job is still running."""
return self._job.state(jobset.NoCache()) == jobset._RUNNING
return self._job.state() == jobset._RUNNING
4 changes: 2 additions & 2 deletions tools/run_tests/run_performance_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ def __init__(self, spec, language, host_and_port):
self._spec = spec
self.language = language
self.host_and_port = host_and_port
self._job = jobset.Job(spec, bin_hash=None, newline_on_success=True, travis=True, add_env={})
self._job = jobset.Job(spec, newline_on_success=True, travis=True, add_env={})

def is_running(self):
"""Polls a job and returns True if given job is still running."""
return self._job.state(jobset.NoCache()) == jobset._RUNNING
return self._job.state() == jobset._RUNNING

def kill(self):
return self._job.kill()
Expand Down

0 comments on commit 2e1a1fe

Please sign in to comment.