From 089242eda050e0a298d3b5e9cae5eced74bcefa3 Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 18 Jan 2016 00:36:05 +0800 Subject: [PATCH] memcache test mulit return map has no sequence --- cache/memcache/memcache_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cache/memcache/memcache_test.go b/cache/memcache/memcache_test.go index 19629059..8d98c177 100644 --- a/cache/memcache/memcache_test.go +++ b/cache/memcache/memcache_test.go @@ -17,10 +17,11 @@ package memcache import ( _ "github.com/bradfitz/gomemcache/memcache" - "github.com/astaxie/beego/cache" "strconv" "testing" "time" + + "github.com/astaxie/beego/cache" ) func TestMemcacheCache(t *testing.T) { @@ -93,10 +94,10 @@ func TestMemcacheCache(t *testing.T) { if len(vv) != 2 { t.Error("GetMulti ERROR") } - if vv[0].(string) != "author" { + if vv[0].(string) != "author" && vv[0].(string) != "author1" { t.Error("GetMulti ERROR") } - if vv[1].(string) != "author1" { + if vv[1].(string) != "author1" && vv[1].(string) != "author" { t.Error("GetMulti ERROR") }