Skip to content

Commit a54e5d4

Browse files
committed
No need to pass testing.T
1 parent 1cc3e9e commit a54e5d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/integration/upgrade_standalone_fips_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func TestStandaloneUpgradeFIPStoFIPS(t *testing.T) {
3838

3939
// We need to end the upgrade at a FIPS-capable version.
4040
// We need to start the upgrade from a FIPS-capable version
41-
if !isFIPSCapableVersion(t, currentVersion) {
41+
if !isFIPSCapableVersion(currentVersion) {
4242
t.Skipf(
4343
"Minimum end version of FIPS-capable Agent for running this test is either %q or %q, current start version: %q",
4444
*upgradetest.Version_8_19_0_SNAPSHOT,
@@ -77,7 +77,7 @@ func TestStandaloneUpgradeFIPStoFIPS(t *testing.T) {
7777

7878
for _, startVersion := range versionList {
7979
// We need to start the upgrade from a FIPS-capable version
80-
if !isFIPSCapableVersion(t, startVersion) {
80+
if !isFIPSCapableVersion(startVersion) {
8181
t.Logf(
8282
"Minimum start version of FIPS-capable Agent for running this test is either %q or %q, current start version: %q",
8383
*upgradetest.Version_8_19_0_SNAPSHOT,
@@ -127,7 +127,7 @@ func TestStandaloneUpgradeFIPStoNonFIPS(t *testing.T) {
127127

128128
for _, startVersion := range versionList {
129129
// We need to start the upgrade from a FIPS-capable version
130-
if !isFIPSCapableVersion(t, startVersion) {
130+
if !isFIPSCapableVersion(startVersion) {
131131
t.Logf(
132132
"Minimum start version of FIPS-capable Agent for running this test is either %q or %q, current start version: %q",
133133
*upgradetest.Version_8_19_0_SNAPSHOT,
@@ -154,7 +154,7 @@ func TestStandaloneUpgradeFIPStoNonFIPS(t *testing.T) {
154154
}
155155
}
156156

157-
func isFIPSCapableVersion(t testing.T, ver version.ParsedSemVer) bool {
157+
func isFIPSCapableVersion(ver *version.ParsedSemVer) bool {
158158
// Versions prior to 8.19.0-SNAPSHOT are not FIPS-capable
159159
if ver.Less(*upgradetest.Version_8_19_0_SNAPSHOT) {
160160
return false

0 commit comments

Comments
 (0)