Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit d6346b4

Browse files
committed
fix agent uninstall
1 parent 69b91cc commit d6346b4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

e2e/_suites/fleet/fleet.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ func (fts *FleetTestSuite) afterScenario() {
6565
"error": err,
6666
}).Warn("Could not get agent logs in the container")
6767
}
68+
}
6869

69-
// only call it when the elastic-agent is present
70-
if !fts.ElasticAgentStopped {
71-
err := agentInstaller.UninstallFn()
72-
if err != nil {
73-
log.Warnf("Could not uninstall the agent after the scenario: %v", err)
74-
}
70+
// only call it when the elastic-agent is present
71+
if !fts.ElasticAgentStopped {
72+
err := agentInstaller.UninstallFn()
73+
if err != nil {
74+
log.Warnf("Could not uninstall the agent after the scenario: %v", err)
7575
}
7676
}
7777

0 commit comments

Comments
 (0)