mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Clean up sync_get_version
This commit is contained in:
parent
f5fb79cc63
commit
a76e283918
1 changed files with 2 additions and 7 deletions
|
@ -4,13 +4,8 @@ import tornado.testing
|
||||||
|
|
||||||
class ExternalVersionTestCase(tornado.testing.AsyncTestCase):
|
class ExternalVersionTestCase(tornado.testing.AsyncTestCase):
|
||||||
def sync_get_version(self, name, config):
|
def sync_get_version(self, name, config):
|
||||||
result = {}
|
|
||||||
|
|
||||||
def get_version_callback(name, version):
|
def get_version_callback(name, version):
|
||||||
result["version"] = version
|
self.stop(version)
|
||||||
self.stop()
|
|
||||||
|
|
||||||
get_version(name, config, get_version_callback)
|
get_version(name, config, get_version_callback)
|
||||||
self.wait()
|
return self.wait()
|
||||||
|
|
||||||
return result["version"]
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue