Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for hasError (0.27 sec)

  1. pkg/kubelet/lifecycle/handlers_test.go

    			container.Lifecycle.PostStart.HTTPGet.Port = tt.Port
    			pod.Spec.Containers = []v1.Container{container}
    			_, err := handlerRunner.Run(ctx, containerID, &pod, &container, container.Lifecycle.PostStart)
    
    			if hasError := (err != nil); hasError != tt.ExpectError {
    				t.Errorf("unexpected error: %v", err)
    			}
    
    			if fakeHTTPDoer.url != tt.Expected {
    				t.Errorf("unexpected url: %s", fakeHTTPDoer.url)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/helpers_test.go

    		}
    	}
    }
    
    func TestParsePercentage(t *testing.T) {
    	testCases := map[string]struct {
    		hasError bool
    		value    float32
    	}{
    		"blah": {
    			hasError: true,
    		},
    		"25.5%": {
    			value: 0.255,
    		},
    		"foo%": {
    			hasError: true,
    		},
    		"12%345": {
    			hasError: true,
    		},
    	}
    	for input, expected := range testCases {
    		value, err := parsePercentage(input)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/buildlist.go

    	}
    
    	var graphRoots []module.Version
    	if inWorkspaceMode() {
    		graphRoots = roots
    	} else {
    		graphRoots = MainModules.Versions()
    	}
    	var (
    		mu       sync.Mutex // guards mg.g and hasError during loading
    		hasError bool
    		mg       = &ModuleGraph{
    			g: mvs.NewGraph(cmpVersion, graphRoots),
    		}
    	)
    
    	if pruning != workspace {
    		if inWorkspaceMode() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            }
    
            def legacyResults = DefaultResolverResults.DefaultLegacyResolverResults.graphResolved(
                depSpec -> selectedArtifacts(failure),
                Mock(ResolvedConfiguration) {
                    hasError() >> true
                }
            )
    
            DefaultResolverResults.graphResolved(visitedGraphResults, visitedArtifactSet, legacyResults)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/StatementResolver.kt

                null
            } else {
                var hasErrors = false
                if (lhsResolution.property.isReadOnly) {
                    errorCollector.collect(ResolutionError(assignment, ErrorReason.ReadOnlyPropertyAssignment(lhsResolution.property)))
                    hasErrors = true
                }
                val rhsResolution = expressionResolver.doResolveExpression(this, assignment.rhs)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/FunctionCallResolver.kt

            val argResolutions = lazy {
                var hasErrors = false
                val result = buildMap<FunctionArgument.ValueArgument, ObjectOrigin> {
                    functionCall.args.filterIsInstance<FunctionArgument.ValueArgument>().forEach {
                        val resolution = expressionResolver.doResolveExpression(context, it.expr)
                        if (resolution == null) {
                            hasErrors = true
                        } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 14:27:23 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    				},
    			}
    
    			errs := StatusStrategy.ValidateUpdate(ctx, newPdb, oldPdb)
    			hasErrors := len(errs) > 0
    			if !tc.validation && hasErrors {
    				t.Errorf("Validation failed when no validation should happen")
    			}
    			if tc.validation && !hasErrors {
    				t.Errorf("Expected validation errors but didn't get any")
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/runtime/framework.go

    				// https://github.com/kubernetes/kubernetes/issues/119770
    				returnStatus = s
    				continue
    			}
    			return nil, framework.AsStatus(fmt.Errorf("running PreFilter plugin %q: %w", pl.Name(), s.AsError())).WithPlugin(pl.Name())
    		}
    		if !r.AllNodes() {
    			pluginsWithNodes = append(pluginsWithNodes, pl.Name())
    		}
    		result = result.Merge(r)
    		if !result.AllNodes() && len(result.NodeNames) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  9. pkg/scheduler/schedule_one.go

    	preScoreStatus := fwk.RunPreScorePlugins(ctx, state, pod, nodes)
    	if !preScoreStatus.IsSuccess() {
    		return nil, preScoreStatus.AsError()
    	}
    
    	// Run the Score plugins.
    	nodesScores, scoreStatus := fwk.RunScorePlugins(ctx, state, pod, nodes)
    	if !scoreStatus.IsSuccess() {
    		return nil, scoreStatus.AsError()
    	}
    
    	// Additional details logged at level 10 if enabled.
    	loggerVTen := logger.V(10)
    	if loggerVTen.Enabled() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/interface.go

    	code := s.Code()
    	return code == Unschedulable || code == UnschedulableAndUnresolvable || code == Pending
    }
    
    // AsError returns nil if the status is a success, a wait or a skip; otherwise returns an "error" object
    // with a concatenated message on reasons of the Status.
    func (s *Status) AsError() error {
    	if s.IsSuccess() || s.IsWait() || s.IsSkip() {
    		return nil
    	}
    	if s.err != nil {
    		return s.err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
Back to top