mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:50:54 +00:00
memcache test mulit return map has no sequence
This commit is contained in:
parent
92d0b9ae95
commit
089242eda0
7
cache/memcache/memcache_test.go
vendored
7
cache/memcache/memcache_test.go
vendored
@ -17,10 +17,11 @@ package memcache
|
|||||||
import (
|
import (
|
||||||
_ "github.com/bradfitz/gomemcache/memcache"
|
_ "github.com/bradfitz/gomemcache/memcache"
|
||||||
|
|
||||||
"github.com/astaxie/beego/cache"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/astaxie/beego/cache"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMemcacheCache(t *testing.T) {
|
func TestMemcacheCache(t *testing.T) {
|
||||||
@ -93,10 +94,10 @@ func TestMemcacheCache(t *testing.T) {
|
|||||||
if len(vv) != 2 {
|
if len(vv) != 2 {
|
||||||
t.Error("GetMulti ERROR")
|
t.Error("GetMulti ERROR")
|
||||||
}
|
}
|
||||||
if vv[0].(string) != "author" {
|
if vv[0].(string) != "author" && vv[0].(string) != "author1" {
|
||||||
t.Error("GetMulti ERROR")
|
t.Error("GetMulti ERROR")
|
||||||
}
|
}
|
||||||
if vv[1].(string) != "author1" {
|
if vv[1].(string) != "author1" && vv[1].(string) != "author" {
|
||||||
t.Error("GetMulti ERROR")
|
t.Error("GetMulti ERROR")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user