Skip to content

Commit

Permalink
Fix assertion logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Nov 9, 2023
1 parent 6b30016 commit 545ef3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/integration/upgrade_fleet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func testUpgradeFleetManagedElasticAgent(ctx context.Context, t *testing.T, info
require.NoError(t, err)
require.Eventually(t, func() bool {
agent, err := fleettools.GetAgentByPolicyIDAndHostnameFromList(kibClient, policy.ID, hostname)
return err != nil && agent.UpgradeDetails != nil
return err == nil && agent.UpgradeDetails != nil

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

Expand Down

0 comments on commit 545ef3f

Please sign in to comment.