Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestProbabilisticGoawayDecider (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/goaway_test.go

    	"crypto/tls"
    	"fmt"
    	"io"
    	"io/ioutil"
    	"math/rand"
    	"net"
    	"net/http"
    	"net/http/httptest"
    	"reflect"
    	"sync"
    	"testing"
    	"time"
    
    	"golang.org/x/net/http2"
    )
    
    func TestProbabilisticGoawayDecider(t *testing.T) {
    	cases := []struct {
    		name         string
    		chance       float64
    		nextFn       func(chance float64) func() float64
    		expectGOAWAY bool
    	}{
    		{
    			name:   "always not GOAWAY",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 12:58:54 UTC 2021
    - 13.9K bytes
    - Viewed (0)
Back to top