Skip to content

Commit a2566b9

Browse files
fix error format
1 parent ab1ba9a commit a2566b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lsf/lsf_cluster_test_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func VerifySSHKey(t *testing.T, sshMgmtClient *ssh.Client, publicHostIP, publicH
7070
// Check if the node list is empty
7171
if len(nodeList) == 0 {
7272
errorMsg := fmt.Sprintf("%s node IPs cannot be empty", nodeType)
73-
utils.LogVerificationResult(t, fmt.Errorf(errorMsg), fmt.Sprintf("%s node SSH check", nodeType), logger)
73+
utils.LogVerificationResult(t, fmt.Errorf("%s", errorMsg), fmt.Sprintf("%s node SSH check", nodeType), logger)
7474
return
7575
}
7676

@@ -84,7 +84,7 @@ func VerifySSHKey(t *testing.T, sshMgmtClient *ssh.Client, publicHostIP, publicH
8484
sshKeyCheckErr = LSFCheckSSHKeyForComputeNodes(t, sshMgmtClient, nodeList, logger)
8585
default:
8686
errorMsg := fmt.Sprintf("unknown node type for SSH key verification: %s", nodeType)
87-
utils.LogVerificationResult(t, fmt.Errorf(errorMsg), fmt.Sprintf("%s node SSH check", nodeType), logger)
87+
utils.LogVerificationResult(t, fmt.Errorf("%s", errorMsg), fmt.Sprintf("%s node SSH check", nodeType), logger)
8888
return
8989
}
9090

0 commit comments

Comments
 (0)