Skip to content

Commit f8c927b

Browse files
Update tests/fixture/bootstrapmonitor/bootstrap_test_config.go
Co-authored-by: Stephen Buttolph <[email protected]> Signed-off-by: marun <[email protected]>
1 parent 953b96b commit f8c927b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/fixture/bootstrapmonitor/bootstrap_test_config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ func bootstrapTestConfigForPod(pod *corev1.Pod, nodeContainerName string) (*Boot
9797
// the case of a newly-created bootstrap test using an image tagged `latest` that hasn't yet had a
9898
// chance to discover the versions.
9999
if versionsAnnotation := pod.Annotations[VersionsAnnotationKey]; len(versionsAnnotation) > 0 {
100-
testConfig.Versions = &version.Versions{}
101-
if err := json.Unmarshal([]byte(versionsAnnotation), testConfig.Versions); err != nil {
100+
if err := json.Unmarshal([]byte(versionsAnnotation), &testConfig.Versions); err != nil {
102101
return nil, fmt.Errorf("%w: %w", errFailedToUnmarshalAnnoation, err)
103102
}
104103
}

0 commit comments

Comments
 (0)