浏览代码

修改测试

yjp 3 年之前
父节点
当前提交
e1c3427691
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/state_test.go

+ 1 - 1
test/state_test.go

@@ -58,7 +58,7 @@ func TestStateSaveAndGetJson(t *testing.T) {
 	defer state.DestroyAPI(api)
 
 	key := utils.SimpleUUID()
-	value, err := json.Marshal(map[string]interface{}{"value": "aaa"})
+	value, err := json.Marshal(map[string]interface{}{"tree": map[string]interface{}{"value": "aaa"}})
 	if err != nil {
 		t.Fatal(err)
 	}