diff --git a/tests/linearizability/history.go b/tests/linearizability/history.go index bec299365ad0..066f1da9e000 100644 --- a/tests/linearizability/history.go +++ b/tests/linearizability/history.go @@ -84,6 +84,7 @@ func (h *appendableHistory) AppendPut(key, value string, start, end time.Time, r type history struct { successful []porcupine.Operation // failed requests are kept separate as we don't know return time of failed operations. + // Based on https://github.com/anishathalye/porcupine/issues/10 failed []porcupine.Operation } @@ -108,6 +109,8 @@ func (h history) Operations() []porcupine.Operation { maxTime = op.Return } } + // Failed requests don't have a known return time. + // We simulate Infinity by using return time of latest successfully request. for _, op := range h.failed { if op.Call > maxTime { continue