Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckSuccessRate (0.14 sec)

  1. pkg/test/framework/components/echo/util/traffic/result.go

    	} else {
    		r.SuccessfulRequests += count
    	}
    }
    
    func (r Result) PercentSuccess() float64 {
    	return float64(r.SuccessfulRequests) / float64(r.TotalRequests)
    }
    
    // CheckSuccessRate asserts that a minimum success threshold was met.
    func (r Result) CheckSuccessRate(t test.Failer, minimumPercent float64) {
    	if r.PercentSuccess() < minimumPercent {
    		t.Fatalf("Minimum success threshold, %f, was not met. %d/%d (%f) requests failed: %v",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 12 22:50:35 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. tests/integration/pilot/revisioned_upgrade_test.go

    				t.Fatalf("expected post-upgrade container image not to include %q, got %q", fromVersion, c.Image)
    			}
    		}
    	}
    
    	// Stop the traffic generator and get the result.
    	g.Stop().CheckSuccessRate(t, successThreshold)
    }
    
    // enableDefaultInjection takes a namespaces and relabels it such that it will have a default sidecar injected
    func enableDefaultInjection(ns namespace.Instance) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top