Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckOrFail (0.23 sec)

  1. pkg/test/util/structpath/instance.go

    	}
    
    	for _, c := range i.constraints {
    		if err := c(); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // CheckOrFail calls Check on this selection and fails the given test if an
    // error is encountered.
    func (i *Instance) CheckOrFail(t test.Failer) *Instance {
    	t.Helper()
    	if err := i.Check(); err != nil {
    		t.Fatal(err)
    	}
    	return i
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  2. pilot/pkg/xds/xds_test.go

    			Equals("PassthroughCluster", "{.filterChains[1].filters[0].typedConfig.cluster}").
    			Equals("PassthroughCluster", "{.filterChains[1].filters[0].typedConfig.statPrefix}").
    			Equals(true, "{.useOriginalDst}").
    			CheckOrFail(t)
    	})
    
    	t.Run("mongo", func(t *testing.T) {
    		s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{
    			ConfigString: mustReadFile(t, "tests/testdata/config/se-example.yaml"),
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top