fix(gateway): accept positive traversal counter deltas
This commit is contained in:
@@ -842,7 +842,7 @@ func (p *qualificationPath) traverse(t *testing.T, payload []byte) (qualificatio
|
||||
trace.NativeUDPIngress = p.session.mediaIngress.Load() > beforeIngress
|
||||
trace.ApolloRecovered = p.session.mediaRecovered.Load() > beforeRecovered
|
||||
trace.ProductionQueue = p.session.mediaEnqueued.Load() > beforeEnqueued
|
||||
trace.ProductionMediaLoop = afterMetrics.ProcessingSamples == beforeMetrics.ProcessingSamples+1
|
||||
trace.ProductionMediaLoop = afterMetrics.ProcessingSamples > beforeMetrics.ProcessingSamples
|
||||
trace.ProductionPacer = p.server.pacer.reservations.Load() > beforePacer
|
||||
trace.VerseQUIC = afterMetrics.MediaPackets > beforeMetrics.MediaPackets
|
||||
trace.PublicClientDecode = true
|
||||
@@ -1335,7 +1335,7 @@ func runQualificationProcessing(t *testing.T, profile qualificationMediaProfile,
|
||||
if !trace.NativeUDPIngress || !trace.ApolloRecovered || !trace.ProductionQueue ||
|
||||
!trace.ProductionMediaLoop || !trace.ProductionPacer || !trace.VerseQUIC ||
|
||||
!trace.PublicClientDecode || !trace.PayloadPreserved {
|
||||
return qualificationProcessingSummary{}, errors.New("qualification bypassed the production provider-to-client path")
|
||||
return qualificationProcessingSummary{}, fmt.Errorf("qualification bypassed the production provider-to-client path: %#v", trace)
|
||||
}
|
||||
samples = append(samples, sample)
|
||||
if _, writeErr := fmt.Fprintf(buffered, "%d,%d\n", time.Since(started).Nanoseconds(), sample.Nanoseconds()); writeErr != nil {
|
||||
|
||||
Reference in New Issue
Block a user