Some misc changes (#1107)

- ticker.Stop always
- clean up timer func (if they are added) on participant close
- sequencer test enhancement to add a real packet after a pdding packet
This commit is contained in:
Raja Subramanian
2022-10-20 11:11:45 +05:30
committed by GitHub
parent 20cbb02360
commit 4344af6fd3
4 changed files with 9 additions and 3 deletions
+3 -3
View File
@@ -71,14 +71,14 @@ func Test_sequencer_getNACKSeqNo(t *testing.T) {
{
name: "Should get correct seq numbers",
fields: fields{
input: []uint16{2, 3, 4, 7, 8},
input: []uint16{2, 3, 4, 7, 8, 11},
padding: []uint16{9, 10},
offset: 5,
},
args: args{
seqNo: []uint16{4 + 5, 5 + 5, 8 + 5, 9 + 5, 10 + 5},
seqNo: []uint16{4 + 5, 5 + 5, 8 + 5, 9 + 5, 10 + 5, 11 + 5},
},
want: []uint16{4, 8},
want: []uint16{4, 8, 11},
},
}
for _, tt := range tests {