diff --git a/ohos_nweb/src/nweb_helper.cpp b/ohos_nweb/src/nweb_helper.cpp index d4c1716df4fc011d3474a4f3130000d01fed318b..457ffa1b36040a552cb6e2fceb4962b3ef857ec8 100644 --- a/ohos_nweb/src/nweb_helper.cpp +++ b/ohos_nweb/src/nweb_helper.cpp @@ -1398,7 +1398,6 @@ void NWebHelper::SetSocketIdleTimeout(int32_t timeout) socketIdleTimeout_ = timeout; return; } - nwebEngine_->SetSocketIdleTimeout(timeout); } diff --git a/test/unittest/nweb_helper_test/nweb_helper_ex_test.cpp b/test/unittest/nweb_helper_test/nweb_helper_ex_test.cpp index 30d53c06af644e596dc5b3b9b40ffe1c903a0851..deb735275a0192102c6c3f22ce6ef8d07202a6b7 100644 --- a/test/unittest/nweb_helper_test/nweb_helper_ex_test.cpp +++ b/test/unittest/nweb_helper_test/nweb_helper_ex_test.cpp @@ -448,7 +448,6 @@ HWTEST_F(NwebHelperTest, NWebHelper_LoadWebEngine_008, TestSize.Level1) NWebHelper::Instance().PauseAllTimers(); NWebHelper::Instance().ResumeAllTimers(); NWebHelper::Instance().SetWebDestroyMode(WebDestroyMode::NORMAL_MODE); - auto nwebEngineMock = std::make_shared(); NWebHelper::Instance().nwebEngine_ = nwebEngineMock; NWebHelper::Instance().SetHttpDns(config);