mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-03-31 22:08:49 +02:00
16 lines
305 B
Go
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)
|
|
}
|