From 6224190bd971000df60da7630fd6121653cbc6d2 Mon Sep 17 00:00:00 2001 From: bircni Date: Sun, 18 Oct 2026 20:26:06 +0200 Subject: [PATCH] test: give the integration SSH key a comment, since the title defaults to it Signed-off-by: bircni --- internal/app/integration_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/app/integration_test.go b/internal/app/integration_test.go index f9e562ac..a6eb6d41 100644 --- a/internal/app/integration_test.go +++ b/internal/app/integration_test.go @@ -477,7 +477,8 @@ func TestGiteaMetadataLifecycle(t *testing.T) { publicKey, err := ssh.NewPublicKey(privateKey.Public()) require.NoError(t, err) keyFile := filepath.Join(t.TempDir(), "integration.pub") - require.NoError(t, os.WriteFile(keyFile, ssh.MarshalAuthorizedKey(publicKey), 0o600)) + // The title defaults to the key comment. + require.NoError(t, os.WriteFile(keyFile, append(bytes.TrimSpace(ssh.MarshalAuthorizedKey(publicKey)), " integration\n"...), 0o600)) var key services.SSHKey require.NoError(t, json.Unmarshal(execute("ssh-key", "create", keyFile, "--json"), &key)) require.Positive(t, key.ID)