Skip to content

Commit d1dc058

Browse files
committed
fix: test race
1 parent 337f398 commit d1dc058

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/replay/player/module.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ func (p *Player) consume(event sessions.Event) {
5555
if p.retainOutputData {
5656
p.mu.Lock()
5757
p.events = append(p.events, event)
58+
index := len(p.events) - 1
5859
p.mu.Unlock()
59-
p.Goto(len(p.events)-1, -1)
60+
p.Goto(index, -1)
6061
return
6162
}
6263

0 commit comments

Comments
 (0)