From 6d4db9e8437595487e72fbcffdc8e7027430610a Mon Sep 17 00:00:00 2001 From: GG <863867759@qq.com> Date: Thu, 14 Dec 2023 14:15:40 +0800 Subject: [PATCH] test: test query user info by address --- dmens/query_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dmens/query_test.go b/dmens/query_test.go index 9819a37..809c23c 100644 --- a/dmens/query_test.go +++ b/dmens/query_test.go @@ -108,6 +108,11 @@ func TestQueryUserInfoByAddress(t *testing.T) { require.Nil(t, err) t.Log(res.JsonString()) + // query user not exists + res, err = poster.QueryUserInfoByAddress("0x1") + require.Nil(t, err) + require.Nil(t, res) + // query specified user's info // res, err = poster.QueryUserInfoByAddress("0x5cbf57ec2dd5c4eb0560ee6ac20e9f8f3a75eca1")