Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Nov 23, 2023
1 parent 11887c4 commit 4124a5b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions testing/integration/upgrade_fleet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,15 @@ func testUpgradeFleetManagedElasticAgent(
require.NoError(t, err)
require.Eventually(t, func() bool {
agent, err := fleettools.GetAgentByPolicyIDAndHostnameFromList(kibClient, policy.ID, hostname)
if agent.UpgradeDetails != nil {
t.Logf("Waiting from upgrade details to show up in Fleet. "+
"UpgradeDetails: %#v", agent.UpgradeDetails)
} else {
t.Logf("Waiting from upgrade details to show up in Fleet. " +
"UpgradeDetails: nil")
}
return err == nil && agent.UpgradeDetails != nil

}, 5*time.Minute, time.Second)
}, 5*time.Minute, 10*time.Second)

// wait for the watcher to show up
t.Logf("Waiting for upgrade watcher to start...")
Expand Down

0 comments on commit 4124a5b

Please sign in to comment.