Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/cmd/hive/boot_config_deps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ func newBootConfigFake(t *testing.T) *bootConfigFake {
cfg.Project.Org = "acme"
cfg.Project.Repos = []string{"acme/widgets"}
cfg.Agents = map[string]config.AgentConfig{}
// Never bind the real pprof listener from a unit test: whether
// 127.0.0.1:6060 is free decides whether startRuntimeObservability
// registers an extra cleanup, which made the cleanup-count
// assertions below depend on what else runs on the CI host.
cfg.Debug.PprofAddr = config.PprofAddrOff
return cfg, nil
},
// Every logger the phase installs is captured, including the stdout
Expand Down Expand Up @@ -348,6 +353,7 @@ func TestBootConfigWith_ConfigPathDisagreementAndTracingFailureAreWarnings(t *te
cfg.Agents = map[string]config.AgentConfig{}
cfg.Project.Org = "acme"
cfg.Project.Repos = []string{"other/repo"} // not under the org
cfg.Debug.PprofAddr = config.PprofAddrOff
return cfg, nil
}
b := &boot{}
Expand Down
Loading