Skip to content

Commit

Permalink
Fix flake8 violations
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
  • Loading branch information
sloretz committed May 2, 2019
1 parent 2b611a0 commit 67718c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rclpy/test/test_create_while_spinning.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def tearDown(self):

def test_publish_subscribe(self):
evt = threading.Event()
sub = self.node.create_subscription(BasicTypes, 'foo', lambda msg: evt.set())
self.node.create_subscription(BasicTypes, 'foo', lambda msg: evt.set())
pub = self.node.create_publisher(BasicTypes, 'foo')
pub.publish(BasicTypes())
assert evt.wait(TIMEOUT)
Expand All @@ -67,7 +67,7 @@ def trigger_event(req, resp):
evt.set()
return resp

srv = self.node.create_service(BasicTypesSrv, 'foo', trigger_event)
self.node.create_service(BasicTypesSrv, 'foo', trigger_event)
cli = self.node.create_client(BasicTypesSrv, 'foo')
cli.wait_for_service()
cli.call_async(BasicTypesSrv.Request())
Expand All @@ -83,7 +83,7 @@ def test_guard_condition(self):
def test_timer(self):
evt = threading.Event()

tmr = self.node.create_timer(TIMEOUT / 10, lambda: evt.set())
self.node.create_timer(TIMEOUT / 10, lambda: evt.set())
assert evt.wait(TIMEOUT)

def test_waitable(self):
Expand Down

0 comments on commit 67718c2

Please sign in to comment.