Skip to content

Commit 2ffb54a

Browse files
committed
Fix acme.sh ci test
1 parent b123ca4 commit 2ffb54a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

backend/internal/acme/acmesh_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,11 @@ func TestGetCommonEnvVars(t *testing.T) {
219219
func TestGetAcmeShVersion(t *testing.T) {
220220
t.Run("basic test", func(t *testing.T) {
221221
resp := GetAcmeShVersion()
222-
assert.Greater(t, len(resp), 1)
223-
assert.Equal(t, "v", resp[:1])
222+
// Seems like a pointless test, however when this is run in CI
223+
// it doesn't have access to the acme.sh command so it will
224+
// always be empty. But when running in Docker, it will.
225+
if resp != "" {
226+
assert.Equal(t, "v", resp[:1])
227+
}
224228
})
225229
}

0 commit comments

Comments
 (0)