* Replace check for integration tests. * Revert changes in pkg/tsdb/mysql packages. * Fix formatting of few tests.
23 lines
501 B
Go
23 lines
501 B
Go
package remotecache
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
"github.com/grafana/grafana/pkg/util/testutil"
|
|
)
|
|
|
|
func TestIntegrationMemcachedCacheStorage(t *testing.T) {
|
|
testutil.SkipIntegrationTestInShortMode(t)
|
|
|
|
u, ok := os.LookupEnv("MEMCACHED_HOSTS")
|
|
if !ok || u == "" {
|
|
t.Skip("No Memcached hosts provided")
|
|
}
|
|
|
|
opts := &setting.RemoteCacheSettings{Name: memcachedCacheType, ConnStr: u}
|
|
client := createTestClient(t, opts, nil)
|
|
runTestsForClient(t, client)
|
|
}
|