上传背包测试脚本

This commit is contained in:
liwei1dao 2022-06-23 14:36:20 +08:00
parent 2f7a6cb58c
commit 426120cefb

View File

@ -73,7 +73,7 @@ func TestMain(m *testing.M) {
defer os.Exit(m.Run()) defer os.Exit(m.Run())
} }
func Test_Log(t *testing.T) { func Test_Modules(t *testing.T) {
data, _ := ptypes.MarshalAny(&pb.Pack_Getlist_Req{}) data, _ := ptypes.MarshalAny(&pb.Pack_Getlist_Req{})
s_gateComp.ReceiveMsg(context.Background(), &pb.AgentMessage{Method: "pack.getlist", Message: data}, &pb.RPCMessageReply{}) s_gateComp.ReceiveMsg(context.Background(), &pb.AgentMessage{Method: "pack.getlist", Message: data}, &pb.RPCMessageReply{})
// items, err := module.db_comp.Pack_QueryUserPack("liwei1dao") // items, err := module.db_comp.Pack_QueryUserPack("liwei1dao")