Skip to content

Commit

Permalink
fixed test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
F483 committed Feb 25, 2016
1 parent d8f8691 commit 2a5bd2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion storjnet/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def dht_put(self, key, value):

@crochet.wait_for(timeout=self._call_timeout)
def func():
return self.put_async(key, value)
return self.dht_put_async(key, value)
return func()

def dht_get_async(self, key):
Expand Down
9 changes: 6 additions & 3 deletions swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# log.startLogging(sys.stdout)


SWARMSIZE = 50
SWARMSIZE = 5
START_NET_PORT = 6000
START_USER_PORT = 5000

Expand Down Expand Up @@ -54,9 +54,12 @@
while True:
time.sleep(1)

finally:
# expected exit mode
except KeyboardInterrupt:
pass

# shutdown swarm
# shutdown swarm
finally:
for api, thread in nodes:
api.stopserver()
thread.join()

0 comments on commit 2a5bd2d

Please sign in to comment.