fix formatting

This commit is contained in:
TheFox0x7 2025-03-22 18:02:54 +01:00
parent ea31ae850e
commit c51f3ca01e
No known key found for this signature in database
GPG Key ID: 6CA33903484AF7C2
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import (
"testing"
"code.gitea.io/gitea/modules/ssh"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View File

@ -32,7 +32,7 @@ func withKeyFile(t *testing.T, keyname string, callback func(string)) {
assert.NoError(t, err)
keyFile := filepath.Join(tmpDir, keyname)
err = ssh.GenKeyPair(keyFile)
err = ssh.GenKeyPair(keyFile, ssh.RSA)
assert.NoError(t, err)
err = os.WriteFile(path.Join(tmpDir, "ssh"), []byte("#!/bin/bash\n"+