File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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.
196196func (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 {})
You can’t perform that action at this time.
0 commit comments