阶段六:修复生命周期与运行状态一致性

This commit is contained in:
Christ committed 2026-08-19 11:34:45 +08:00
1 parent 5f8d999ab0
commit c23a5a18b8
43 files changed
+1541 -171

No files matched your search

+1 -1
View File
@@ -218,7 +218,7 @@ func TestPasswordDetectorHandlesHTMLAndURLs(t *testing.T) {
}
// failedManager 保存初始化函数失败的浏览器管理器。
failedManager := NewManager(nil)
failedManager.installFn = func() error { return errors.New("测试安装失败") }
failedManager.installFn = func(context.Context) error { return errors.New("测试安装失败") }
if // err 保存初始化失败错误。
err := failedManager.Initialize(); err == nil {
t.Fatal("初始化失败应向调用方返回错误")