Skip to content

Commit b36781b

Browse files
Use API 2.0 properties in Java tests (#874)
1 parent 468701a commit b36781b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/java_api/src/test/java/org/intel/openvino/CoreTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ public void testProperty() {
8282
Map<String, String> config =
8383
new HashMap<String, String>() {
8484
{
85-
put("CPU_THROUGHPUT_STREAMS", "4");
85+
put("NUM_STREAMS", "4");
8686
}
8787
};
8888
core.set_property("CPU", config);
8989
int nireq2 = core.get_property("CPU", "OPTIMAL_NUMBER_OF_INFER_REQUESTS").asInt();
9090

9191
assertEquals("Final number of requests", 4, nireq2);
9292

93-
config.put("CPU_THROUGHPUT_STREAMS", "1");
93+
config.put("NUM_STREAMS", "1");
9494
core.set_property("CPU", config); // Restore
9595
}
9696

0 commit comments

Comments
 (0)