no more memcache, go broke for mac 18.1
This commit is contained in:
28
db_test.go
28
db_test.go
@@ -146,26 +146,6 @@ func TestImplementations(t *testing.T) {
|
||||
t.Log("$MONGO not set. Skipping")
|
||||
}
|
||||
|
||||
if _, ok := os.LookupEnv("MEMCACHED"); ok {
|
||||
if memcache, err := NewMemcache("localhost:11211"); err != nil {
|
||||
t.Logf("cannot make memcache: %v", err)
|
||||
} else {
|
||||
cases = append(cases, memcache)
|
||||
}
|
||||
} else {
|
||||
t.Log("$MEMCACHED not set. Skipping")
|
||||
}
|
||||
|
||||
if _, ok := os.LookupEnv("MEMCACHEDCLUSTER"); ok {
|
||||
if memcacheCluster, err := NewMemcacheCluster("localhost:11211"); err != nil {
|
||||
t.Logf("cannot make memcacheCluster: %v", err)
|
||||
} else {
|
||||
cases = append(cases, memcacheCluster)
|
||||
}
|
||||
} else {
|
||||
t.Log("$MEMCACHEDCLUSTER not set. Skipping")
|
||||
}
|
||||
|
||||
if _, ok := os.LookupEnv("MINIO"); ok {
|
||||
if minio, err := minio.NewMinio("localhost:9000", "accesskey", "secretkey"); err != nil {
|
||||
t.Logf("cannot make minio: %v", err)
|
||||
@@ -281,14 +261,6 @@ func TestToFromString(t *testing.T) {
|
||||
key: "leveldb",
|
||||
t: LEVELDB,
|
||||
},
|
||||
{
|
||||
key: "memcache",
|
||||
t: MEMCACHE,
|
||||
},
|
||||
{
|
||||
key: "memcachecluster",
|
||||
t: MEMCACHECLUSTER,
|
||||
},
|
||||
{
|
||||
key: "mongo",
|
||||
t: MONGO,
|
||||
|
||||
Reference in New Issue
Block a user