mirror of
https://github.com/astaxie/beego.git
synced 2025-07-27 10:45:32 +00:00
fix session test case
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user