mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 03:01:00 +00:00
fix session test case
This commit is contained in:
parent
7f394feab5
commit
deb28dd873
@ -10,11 +10,11 @@ func Test_gob(t *testing.T) {
|
|||||||
a := make(map[interface{}]interface{})
|
a := make(map[interface{}]interface{})
|
||||||
a["username"] = "astaxie"
|
a["username"] = "astaxie"
|
||||||
a[12] = 234
|
a[12] = 234
|
||||||
b, err := encodeGob(a)
|
b, err := EncodeGob(a)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
c, err := decodeGob(b)
|
c, err := DecodeGob(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user