Skip to content
Snippets Groups Projects
Commit 16927ba9 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Testing inference time, probably not a great idea...

parent 77aca6fd
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,7 @@ class TestIlastikPixelClassification(unittest.TestCase): ...@@ -195,7 +195,7 @@ class TestIlastikPixelClassification(unittest.TestCase):
channel=0, channel=0,
) )
self.assertTrue(result.success) self.assertTrue(result.success)
self.assertGreater(result.timer_results['inference'], 1.0) self.assertGreater(result.timer_results['inference'], 0.1)
class TestIlastikOverApi(TestServerBaseClass): class TestIlastikOverApi(TestServerBaseClass):
......
...@@ -15,7 +15,7 @@ class TestServerBaseClass(unittest.TestCase): ...@@ -15,7 +15,7 @@ class TestServerBaseClass(unittest.TestCase):
def setUp(self) -> None: def setUp(self) -> None:
import uvicorn import uvicorn
host = '127.0.0.1' host = '127.0.0.1'
port = 5001 # TODO: defer to run_server script and conf file port = 5001
self.server_process = Process( self.server_process = Process(
target=uvicorn.run, target=uvicorn.run,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment