File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
java/serving/src/test/java/feast/serving/it Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 2828import feast .proto .serving .ServingAPIProto ;
2929import feast .proto .serving .ServingAPIProto .FieldStatus ;
3030import feast .proto .types .ValueProto ;
31+ import feast .serving .registry .LocalRegistryFile ;
3132import feast .serving .util .DataGenerator ;
3233import io .grpc .StatusRuntimeException ;
33- import java .io .IOException ;
34- import java .nio .file .Files ;
35- import java .nio .file .Paths ;
3634import java .util .List ;
3735import java .util .Map ;
3836import java .util .concurrent .TimeUnit ;
@@ -62,14 +60,8 @@ protected ServingAPIProto.GetOnlineFeaturesRequest buildOnlineRequest(int driver
6260 static RegistryProto .Registry registryProto = readLocalRegistry ();
6361
6462 private static RegistryProto .Registry readLocalRegistry () {
65- try {
66- return RegistryProto .Registry .parseFrom (
67- Files .readAllBytes (Paths .get ("src/test/resources/docker-compose/feast10/registry.db" )));
68- } catch (IOException e ) {
69- e .printStackTrace ();
70- }
71-
72- return null ;
63+ return new LocalRegistryFile ("src/test/resources/docker-compose/feast10/registry.db" )
64+ .getContent ();
7365 }
7466
7567 @ Test
You can’t perform that action at this time.
0 commit comments