Skip to content

Commit 8070103

Browse files
authored
Minor cleanup (#2827)
1 parent d9dab7b commit 8070103

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

testing/integration/upgrade_test.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -498,18 +498,13 @@ func (s *StandaloneUpgradeRetryDownloadTestSuite) getVersion(ctx context.Context
498498
args := []string{"version", "--yaml"}
499499
var output []byte
500500
output, err = s.agentFixture.Exec(ctx, args)
501-
502501
if err != nil {
503502
s.T().Log(string(output))
504503
return false
505504
}
506505

507506
err = yaml.Unmarshal(output, &currentVersion)
508-
if err != nil {
509-
return false
510-
}
511-
512-
return true
507+
return err == nil
513508
}, 1*time.Minute, 1*time.Second)
514509

515510
return &currentVersion, err

0 commit comments

Comments
 (0)