diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-17 19:51:37 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-17 19:51:37 -0700 |
| commit | f8e4cd540b87de3e308ec18a2b040b284a741522 (patch) | |
| tree | 6d8b1ad0bd04cc19ecaf276e271caaef4d0866f4 /hotline/server_blackbox_test.go | |
| parent | 45ca5d60383cbe270624c713b916da29af7ba88f (diff) | |
Clean up various linter warnings
Diffstat (limited to 'hotline/server_blackbox_test.go')
| -rw-r--r-- | hotline/server_blackbox_test.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/hotline/server_blackbox_test.go b/hotline/server_blackbox_test.go index 059fe5a..b45e279 100644 --- a/hotline/server_blackbox_test.go +++ b/hotline/server_blackbox_test.go @@ -30,7 +30,7 @@ func assertTransferBytesEqual(t *testing.T, wantHexDump string, got []byte) bool return assert.Equal(t, wantHexDump, hex.Dump(clean)) } -// tranAssertEqual compares equality of transactions slices after stripping out the random ID +// tranAssertEqual compares equality of transactions slices after stripping out the random transaction ID func tranAssertEqual(t *testing.T, tran1, tran2 []Transaction) bool { var newT1 []Transaction var newT2 []Transaction @@ -39,7 +39,10 @@ func tranAssertEqual(t *testing.T, tran1, tran2 []Transaction) bool { trans.ID = []byte{0, 0, 0, 0} var fs []Field for _, field := range trans.Fields { - if field.ID == [2]byte{0x00, 0x6b} { + if field.ID == [2]byte{0x00, 0x6b} { // FieldRefNum + continue + } + if field.ID == [2]byte{0x00, 0x72} { // FieldChatID continue } fs = append(fs, field) @@ -52,7 +55,10 @@ func tranAssertEqual(t *testing.T, tran1, tran2 []Transaction) bool { trans.ID = []byte{0, 0, 0, 0} var fs []Field for _, field := range trans.Fields { - if field.ID == [2]byte{0x00, 0x6b} { + if field.ID == [2]byte{0x00, 0x6b} { // FieldRefNum + continue + } + if field.ID == [2]byte{0x00, 0x72} { // FieldChatID continue } fs = append(fs, field) |