Skip to content

Commit

Permalink
store: fix race condition warning in test
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Pires <[email protected]>
  • Loading branch information
miguelpires authored and bboozzoo committed Apr 30, 2024
1 parent 7386770 commit a3740a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions store/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ func IsTransferSpeedError(err error) (ok bool, speed float64) {
}

func (w *TransferSpeedMonitoringWriter) MeasuredWindowsCount() int {
w.mu.Lock()
defer w.mu.Unlock()
return w.measuredWindows
}

Expand Down

0 comments on commit a3740a0

Please sign in to comment.