From da4278779d64a0ce27b77a50fdcaecb63ecd52a5 Mon Sep 17 00:00:00 2001 From: "xj.lin" Date: Sun, 24 Mar 2019 21:08:27 +0800 Subject: [PATCH] add new test --- pyengine/engine/controller/tests/test_scheduler.py | 3 +++ pyengine/engine/controller/vector_engine.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 pyengine/engine/controller/tests/test_scheduler.py diff --git a/pyengine/engine/controller/tests/test_scheduler.py b/pyengine/engine/controller/tests/test_scheduler.py new file mode 100644 index 0000000000..98d2fe373e --- /dev/null +++ b/pyengine/engine/controller/tests/test_scheduler.py @@ -0,0 +1,3 @@ +import unittest +from ..scheduler import * + diff --git a/pyengine/engine/controller/vector_engine.py b/pyengine/engine/controller/vector_engine.py index b169ae551e..b4847936d7 100644 --- a/pyengine/engine/controller/vector_engine.py +++ b/pyengine/engine/controller/vector_engine.py @@ -98,7 +98,8 @@ class VectorEngine(object): # create index index_builder = build_index.FactoryIndex() - index = index_builder().build(d, raw_data) + index = index_builder().build(d, raw_data) # type: index + index = build_index.Index.serialize(index) # type: array # TODO(jinhai): store index into Cache index_filename = file.filename + '_index'