!189 异常测试:TDD用例更新(print_service_test)

Merge pull request !189 from 郑志豪/master
This commit is contained in:
openharmony_ci 2023-12-20 13:41:30 +00:00 committed by Gitee
commit 917547fbee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2490,17 +2490,6 @@ HWTEST_F(PrintServiceAbilityTest, PrintServiceAbilityTest_0126, TestSize.Level1)
helper = nullptr;
}
HWTEST_F(PrintServiceAbilityTest, PrintServiceAbilityTest_0127, TestSize.Level1)
{
auto service = CreateService();
EXPECT_NE(service, nullptr);
service->SetHelper(CreatePrintServiceHelper(true, true, true, true));
std::vector<PrinterInfo> printerInfos;
InitExtPrinterList(printerInfos, 1);
EXPECT_EQ(service->AddPrinters(printerInfos), E_PRINT_NONE);
}
HWTEST_F(PrintServiceAbilityTest, PrintServiceAbilityTest_0128, TestSize.Level1)
{
auto service = CreateService();