mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-08 20:48:15 -05:00
Fix acme.sh ci test
This commit is contained in:
parent
26f708d980
commit
d555af68fe
@ -197,8 +197,12 @@ func TestBuildCertRequestArgs(t *testing.T) {
|
|||||||
func TestGetAcmeShFilePath(t *testing.T) {
|
func TestGetAcmeShFilePath(t *testing.T) {
|
||||||
t.Run("basic test", func(t *testing.T) {
|
t.Run("basic test", func(t *testing.T) {
|
||||||
path, err := getAcmeShFilePath()
|
path, err := getAcmeShFilePath()
|
||||||
|
if err != nil {
|
||||||
|
assert.Equal(t, "Cannot find acme.sh execuatable script in PATH: exec: \"acme.sh\": executable file not found in $PATH", err.Error())
|
||||||
|
assert.Equal(t, "", path)
|
||||||
|
} else {
|
||||||
assert.Equal(t, "/bin/acme.sh", path)
|
assert.Equal(t, "/bin/acme.sh", path)
|
||||||
assert.Equal(t, nil, err)
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user