Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestOnlySetFatalOnDecodeError (0.37 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go

    func init() {
    	// check to see if we are running in a test environment
    	TestOnlySetFatalOnDecodeError(true)
    	fatalOnDecodeError, _ = strconv.ParseBool(os.Getenv("KUBE_PANIC_WATCH_DECODE_ERROR"))
    }
    
    // TestOnlySetFatalOnDecodeError should only be used for cases where decode errors are expected and need to be tested. e.g. conversion webhooks.
    func TestOnlySetFatalOnDecodeError(b bool) {
    	fatalOnDecodeError = b
    }
    
    type watcher struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 10:26:38 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/conversion/conversion_test.go

    	// of test cases in production code should be removed?
    	etcd3watcher.TestOnlySetFatalOnDecodeError(false)
    	defer etcd3watcher.TestOnlySetFatalOnDecodeError(true)
    
    	tearDown, config, options, err := fixtures.StartDefaultServer(t, fmt.Sprintf("--watch-cache=%v", watchCache))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 05:32:34 UTC 2023
    - 47.1K bytes
    - Viewed (0)
Back to top