diff --git a/test/unittest/components/v1_0/neural_network_runtime_test/neural_network_runtime_test.cpp b/test/unittest/components/v1_0/neural_network_runtime_test/neural_network_runtime_test.cpp index 94b27e22ae932277cb3aeb65e684bef4defe1295..acf94efdba3c5539931136a3bf230c81f9f0493f 100644 --- a/test/unittest/components/v1_0/neural_network_runtime_test/neural_network_runtime_test.cpp +++ b/test/unittest/components/v1_0/neural_network_runtime_test/neural_network_runtime_test.cpp @@ -1065,7 +1065,7 @@ HWTEST_F(NeuralNetworkRuntimeTest, compilation_build_002, testing::ext::TestSize OH_NNCompilation* nnCompilation = OH_NNCompilation_Construct(model); OH_NN_ReturnCode ret = OH_NNCompilation_Build(nnCompilation); - EXPECT_EQ(OH_NN_FAILED, ret); + EXPECT_EQ(OH_NN_SUCCESS, ret); } /* diff --git a/test/unittest/components/v2_0/neural_network_runtime_test/neural_network_runtime_test.cpp b/test/unittest/components/v2_0/neural_network_runtime_test/neural_network_runtime_test.cpp index a318a4e26670c25425729d9bb1058fab9955b763..7c505eeffdd6958ae6736ff4ac4d035abf5488ba 100644 --- a/test/unittest/components/v2_0/neural_network_runtime_test/neural_network_runtime_test.cpp +++ b/test/unittest/components/v2_0/neural_network_runtime_test/neural_network_runtime_test.cpp @@ -1026,7 +1026,7 @@ HWTEST_F(NeuralNetworkRuntimeTest, compilation_build_002, testing::ext::TestSize OH_NNCompilation* nnCompilation = OH_NNCompilation_Construct(model); OH_NN_ReturnCode ret = OH_NNCompilation_Build(nnCompilation); - EXPECT_EQ(OH_NN_FAILED, ret); + EXPECT_EQ(OH_NN_SUCCESS, ret); } /*