Skip to content

Commit b99a92f

Browse files
committed
Use startFixture
1 parent d770d77 commit b99a92f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

testing/integration/upgrade_fleet_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ func testUpgradeFleetManagedElasticAgent(
521521
assert.NoError(t, err)
522522

523523
if upgradeOpts.PostWatcherSuccessHook != nil {
524-
err = upgradeOpts.PostWatcherSuccessHook(ctx, endFixture)
524+
err = upgradeOpts.PostWatcherSuccessHook(ctx, startFixture)
525525
require.NoError(t, err)
526526
}
527527
}

testing/upgradetest/upgrader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,8 @@ func getStatus(ctx context.Context, fixture *atesting.Fixture) *atesting.AgentSt
708708

709709
// PostUpgradeAgentIsFIPSCapable checks if the Agent fixture after upgrade is FIPS-capable and
710710
// returns an error if it isn't.
711-
func PostUpgradeAgentIsFIPSCapable(ctx context.Context, endFixture *atesting.Fixture) error {
712-
client := endFixture.Client()
711+
func PostUpgradeAgentIsFIPSCapable(ctx context.Context, f *atesting.Fixture) error {
712+
client := f.Client()
713713
err := client.Connect(ctx)
714714
if err != nil {
715715
return err

0 commit comments

Comments
 (0)