mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-02 00:01:12 -04:00
fix formatting
This commit is contained in:
parent
ea31ae850e
commit
c51f3ca01e
@ -11,6 +11,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"code.gitea.io/gitea/modules/ssh"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
@ -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"+
|
||||
|
Loading…
x
Reference in New Issue
Block a user