1
0
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:
astaxie 2016-01-18 00:36:05 +08:00
parent 92d0b9ae95
commit 089242eda0

View File

@ -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")
} }