Skip to content

Commit 142ec35

Browse files
committed
Fix syntax errors
1 parent 5a3fb65 commit 142ec35

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testing/integration/upgrade_fleet_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,17 @@ func TestFleetManagedUpgradePrivilegedFIPS(t *testing.T) {
112112
Group: FleetPrivileged,
113113
Stack: &define.Stack{},
114114
OS: []define.OS{
115-
define.Linux,
115+
{Type: define.Linux},
116116
},
117117
Local: false, // requires Agent installation
118118
Sudo: true, // requires Agent installation
119119
FIPS: true,
120120
})
121121

122+
// parse the version we are testing
123+
currentVersion, err := version.ParseVersion(define.Version())
124+
require.NoError(t, err)
125+
122126
// We need to start the upgrade from a FIPS-capable version
123127
if !isFIPSCapableVersion(currentVersion) {
124128
t.Skipf(

0 commit comments

Comments
 (0)