test(group): assert handler field types

This commit is contained in:
OpenIM-Gordon 2026-09-17 18:36:28 +08:00
parent 4fbebe6e10
commit 53c825a85d

View File

@ -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 {