mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-20 00:07:27 +00:00
16 lines
283 B
Go
16 lines
283 B
Go
package utils
|
|
|
|
import (
|
|
"time"
|
|
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("Test cache utils", func() {
|
|
It("should return false for IsExpired()", func() {
|
|
c := NewMemoryCache("test", 10*time.Hour)
|
|
Expect(c.IsExpired()).Should(BeFalse())
|
|
})
|
|
})
|