test(group): assert handler field types

codex/fix-group-handler-main
OpenIM-Gordon 2 weeks ago
parent f2aa5a2d30
commit 115acc0f13

@ -21,7 +21,7 @@ func TestGroupRequestHandlerUpdate(t *testing.T) {
t.Fatal("handler update contains obsolete handle_msg field")
}
want := map[string]any{
"handled_msg": "approved", "handle_result": constant.GroupResponseAgree,
"handled_msg": "approved", "handle_result": int32(constant.GroupResponseAgree),
"handle_user_id": "admin", "handled_time": handledTime,
}
for key, expected := range want {

Loading…
Cancel
Save