Files
argo-cd/util/cache/cache_test.go
2019-10-16 15:46:45 -07:00

16 lines
305 B
Go

package cache
import (
"testing"
"time"
"github.com/spf13/cobra"
"github.com/stretchr/testify/assert"
)
func TestAddCacheFlagsToCmd(t *testing.T) {
cache, err := AddCacheFlagsToCmd(&cobra.Command{})()
assert.NoError(t, err)
assert.Equal(t, 24*time.Hour, cache.client.(*redisCache).expiration)
}