mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 03:37:39 +00:00
Add go profiling flag, and enable on integration tests (#1382)
This commit is contained in:
@@ -149,15 +149,7 @@ func NewScenario() (*Scenario, error) {
|
||||
// environment running the tests.
|
||||
func (s *Scenario) Shutdown() error {
|
||||
s.controlServers.Range(func(_ string, control ControlServer) bool {
|
||||
err := control.SaveLog("/tmp/control")
|
||||
if err != nil {
|
||||
log.Printf(
|
||||
"Failed to save log from control: %s",
|
||||
fmt.Errorf("failed to save log from control: %w", err),
|
||||
)
|
||||
}
|
||||
|
||||
err = control.Shutdown()
|
||||
err := control.Shutdown()
|
||||
if err != nil {
|
||||
log.Printf(
|
||||
"Failed to shut down control: %s",
|
||||
|
Reference in New Issue
Block a user