Skip to content

Commit b3542c9

Browse files
committed
Simplify formatting of known hosts file content
1 parent bfde394 commit b3542c9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/test/java/org/jenkinsci/plugins/gitclient/verifier/KnownHostsFileVerifierTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
public class KnownHostsFileVerifierTest {
2424

2525
private static final String FILE_CONTENT =
26-
"""
27-
github.com\
28-
ecdsa-sha2-nistp256\
29-
AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=\
30-
""";
26+
"github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=";
3127

3228
// Create a temporary folder and assert folder deletion at end of tests
3329
@Rule

0 commit comments

Comments
 (0)