Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update cluster tests to flush data

davidmezzetti53564bb8bc29
diff --git a/test/python/testapi/testcluster.py b/test/python/testapi/testcluster.py
index d376a766..d00b988c 100644
--- a/test/python/testapi/testcluster.py
+++ b/test/python/testapi/testcluster.py
@@ -50,6 +50,7 @@ class RequestHandler(BaseHTTPRequestHandler):
self.end_headers()
self.wfile.write(response)
+ self.wfile.flush()
def do_POST(self):
"""
@@ -71,6 +72,7 @@ class RequestHandler(BaseHTTPRequestHandler):
self.end_headers()
self.wfile.write(response)
+ self.wfile.flush()
class TestCluster(unittest.TestCase):
diff --git a/test/python/testapi/testworkflow.py b/test/python/testapi/testworkflow.py
index a7b6b4ec..8f0181dd 100644
--- a/test/python/testapi/testworkflow.py
+++ b/test/python/testapi/testworkflow.py
@@ -59,6 +59,7 @@ class RequestHandler(BaseHTTPRequestHandler):
self.end_headers()
self.wfile.write(response)
+ self.wfile.flush()
def do_POST(self):
"""
@@ -76,6 +77,7 @@ class RequestHandler(BaseHTTPRequestHandler):
self.end_headers()
self.wfile.write(response)
+ self.wfile.flush()
class TestWorkflow(unittest.TestCase):