mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-16 06:07:18 +00:00
20 lines
297 B
Go
20 lines
297 B
Go
package diskcache
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/gregjones/httpcache/test"
|
|
)
|
|
|
|
func TestDiskCache(t *testing.T) {
|
|
tempDir, err := ioutil.TempDir("", "httpcache")
|
|
if err != nil {
|
|
t.Fatalf("TempDir: %v", err)
|
|
}
|
|
defer os.RemoveAll(tempDir)
|
|
|
|
test.Cache(t, New(tempDir))
|
|
}
|