Skip to content

Commit 6dbde4a

Browse files
authored
Update resend_state_test.go
1 parent a353cb0 commit 6dbde4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resend_state_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ func (s *resendStateTestSuite) TestFixMsgInResendChunk() {
191191
s.FieldEquals(tagEndSeqNo, 0, s.MockApp.lastToAdmin.Body)
192192
}
193193

194-
//TestFixMsgResendWithOldSendingTime Tests that we suspend staleness checks during replay
195-
//as a replayed message may be arbitrarily old
194+
// TestFixMsgResendWithOldSendingTime tests that we suspend staleness checks during replay
195+
// as a replayed message may be arbitrarily old.
196196
func (s *resendStateTestSuite) TestFixMsgResendWithOldSendingTime() {
197197
s.session.State = inSession{}
198198
s.ResendRequestChunkSize = 2
199199

200-
//in session expects seq number 1, send too high
200+
// In session expects seq number 1, send too high.
201201
s.MessageFactory.SetNextSeqNum(4)
202202
s.MockApp.On("ToAdmin")
203203

@@ -213,7 +213,7 @@ func (s *resendStateTestSuite) TestFixMsgResendWithOldSendingTime() {
213213
s.NextTargetMsgSeqNum(1)
214214

215215
msgSeqNum5 := s.NewOrderSingle()
216-
//set the sending time far enough in the past to trip the staleness check
216+
// Set the sending time far enough in the past to trip the staleness check.
217217
msgSeqNum5.Header.SetField(tagSendingTime, FIXUTCTimestamp{Time: time.Now().Add(-s.MaxLatency)})
218218
s.fixMsgIn(s.session, msgSeqNum5)
219219
s.State(resendState{})

0 commit comments

Comments
 (0)