From c7e932c079c1881aed346d4f6f734c3f401bd637 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Thu, 26 May 2022 16:53:06 -0700 Subject: Fix inconsistent sorting of user list --- hotline/transaction_handlers_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hotline/transaction_handlers_test.go') diff --git a/hotline/transaction_handlers_test.go b/hotline/transaction_handlers_test.go index 21643bf..56968a1 100644 --- a/hotline/transaction_handlers_test.go +++ b/hotline/transaction_handlers_test.go @@ -228,6 +228,12 @@ func TestHandleGetUserNameList(t *testing.T) { Flags: &[]byte{0, 3}, UserName: []byte{0, 4}, }, + uint16(2): { + ID: &[]byte{0, 2}, + Icon: &[]byte{0, 2}, + Flags: &[]byte{0, 3}, + UserName: []byte{0, 4}, + }, }, }, }, @@ -249,6 +255,10 @@ func TestHandleGetUserNameList(t *testing.T) { fieldUsernameWithInfo, []byte{00, 01, 00, 02, 00, 03, 00, 02, 00, 04}, ), + NewField( + fieldUsernameWithInfo, + []byte{00, 02, 00, 02, 00, 03, 00, 02, 00, 04}, + ), }, }, }, -- cgit