@@ -278,11 +278,9 @@ func (t *T) ClearMockResponses() {
278
278
t .mockDeployment .clearResponses ()
279
279
}
280
280
281
- // GetStartedEvent returns the most recent CommandStartedEvent, or nil if one is not present.
281
+ // GetStartedEvent returns the least recent CommandStartedEvent, or nil if one is not present.
282
282
// This can only be called once per event.
283
283
func (t * T ) GetStartedEvent () * event.CommandStartedEvent {
284
- // TODO(GODRIVER-2075): GetStartedEvent documents that it returns the most recent event, but actually returns the first
285
- // TODO event. Update either the documentation or implementation.
286
284
if len (t .started ) == 0 {
287
285
return nil
288
286
}
@@ -291,11 +289,9 @@ func (t *T) GetStartedEvent() *event.CommandStartedEvent {
291
289
return e
292
290
}
293
291
294
- // GetSucceededEvent returns the most recent CommandSucceededEvent, or nil if one is not present.
292
+ // GetSucceededEvent returns the least recent CommandSucceededEvent, or nil if one is not present.
295
293
// This can only be called once per event.
296
294
func (t * T ) GetSucceededEvent () * event.CommandSucceededEvent {
297
- // TODO(GODRIVER-2075): GetSucceededEvent documents that it returns the most recent event, but actually returns the
298
- // TODO first event. Update either the documentation or implementation.
299
295
if len (t .succeeded ) == 0 {
300
296
return nil
301
297
}
@@ -304,11 +300,9 @@ func (t *T) GetSucceededEvent() *event.CommandSucceededEvent {
304
300
return e
305
301
}
306
302
307
- // GetFailedEvent returns the most recent CommandFailedEvent, or nil if one is not present.
303
+ // GetFailedEvent returns the least recent CommandFailedEvent, or nil if one is not present.
308
304
// This can only be called once per event.
309
305
func (t * T ) GetFailedEvent () * event.CommandFailedEvent {
310
- // TODO(GODRIVER-2075): GetFailedEvent documents that it returns the most recent event, but actually returns the first
311
- // TODO event. Update either the documentation or implementation.
312
306
if len (t .failed ) == 0 {
313
307
return nil
314
308
}
0 commit comments