diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-02-10 15:03:55 +0100 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-02-10 15:03:55 +0100 |
| commit | 4660317cbba12af5ae1546948785301e7f9108b4 (patch) | |
| tree | 369de1c56b0dc774e2b6d9b29739601304688231 /reader_test.go | |
| parent | 3650f193abcee4dbc71922c6ecf59fcbcea3637b (diff) | |
| download | muxer-4660317cbba12af5ae1546948785301e7f9108b4.tar.gz muxer-4660317cbba12af5ae1546948785301e7f9108b4.zip | |
Naming
Diffstat (limited to 'reader_test.go')
| -rw-r--r-- | reader_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/reader_test.go b/reader_test.go index e1404da..31825a6 100644 --- a/reader_test.go +++ b/reader_test.go @@ -430,9 +430,9 @@ func reader(q [][]byte, size int) *binproto.Reader { func newMessage(id uint64, ch uint8, l int) *binproto.Message { return &binproto.Message{ - ID: id, - Channel: ch, - Data: []byte(fill(l)), + ID: id, + Type: ch, + Data: []byte(fill(l)), } } @@ -643,7 +643,7 @@ func TestReaderReset(t *testing.T) { err = r.ReadMessage(m) assert.NoError(t, err) assert.Equal(t, uint64(99), m.ID) - assert.Equal(t, uint8(7), m.Channel) + assert.Equal(t, uint8(7), m.Type) assert.Equal(t, 10, len(m.Data)) } |
