Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 207 for wantRm (0.19 sec)

  1. cmd/kubeadm/app/phases/bootstraptoken/clusterinfo/clusterinfo_test.go

    				if !tc.fileExist {
    					fileName = "notexistfile"
    				}
    				err := CreateBootstrapConfigMapIfNotExists(client, fileName)
    				if tc.expectErr && err == nil {
    					t.Errorf("CreateBootstrapConfigMapIfNotExists(%s) wanted error, got nil", tc.name)
    				} else if !tc.expectErr && err != nil {
    					t.Errorf("CreateBootstrapConfigMapIfNotExists(%s) returned unexpected error: %v", tc.name, err)
    				}
    			})
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/mergelocals_test.go

    			continue
    		} else if prolog || line == "" {
    			continue
    		}
    		fields := strings.Fields(line)
    		wantFields := 9
    		if len(fields) != wantFields {
    			t.Logf(string(out))
    			t.Fatalf("bad trace output line, wanted %d fields got %d: %s",
    				wantFields, len(fields), line)
    		}
    		vname := fields[1]
    		frameoff := fields[3]
    		varsAtFrameOffset[frameoff] = varsAtFrameOffset[frameoff] + 1
    		vars[vname] = frameoff
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. istioctl/pkg/install/k8sversion/version_test.go

    			got, err := extractKubernetesVersion(c.version)
    			if c.errMsg != err && c.isValid {
    				t.Fatalf("\nwanted: %v \nbut found: %v", c.errMsg, err)
    			}
    			if got != c.expected {
    				t.Fatalf("wanted %v got %v", c.expected, got)
    			}
    		})
    	}
    }
    
    func TestIsK8VersionSupported(t *testing.T) {
    	cases := []struct {
    		version *version.Info
    		logMsg  string
    		isValid bool
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 19 02:46:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. istioctl/pkg/proxystatus/proxystatus_test.go

    		t.Fatalf("Output didn't match for '%s %s'\n got %v\nwant: %v", cmd.Name(), strings.Join(c.args, " "), output, c.expectedString)
    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. istioctl/pkg/wait/wait_test.go

    		t.Fatalf("Unexpected output for 'istioctl %s'\n got: %q\nwant: %q", strings.Join(c.args, " "), output, c.expectedOutput)
    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. pilot/pkg/model/push_context_test.go

    			}
    
    			sd.serviceInstances = tc.serviceInstances
    			port := &Port{
    				Port: tc.servicePort,
    			}
    			if got := ps.BestEffortInferServiceMTLSMode(nil, service, port); got != tc.wanted {
    				t.Fatalf("want %s, but got %s", tc.wanted, got)
    			}
    			if got := ps.BestEffortInferServiceMTLSMode(nil, externalService, port); got != MTLSUnknown {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  7. cmd/auth-handler_test.go

    	}
    	for i, testCase := range testCases {
    		if _, s3Error := checkAdminRequestAuth(ctx, testCase.Request, policy.AllAdminActions, globalSite.Region()); s3Error != testCase.ErrCode {
    			t.Errorf("Test %d: Unexpected s3error returned wanted %d, got %d", i, testCase.ErrCode, s3Error)
    		}
    	}
    }
    
    func TestValidateAdminSignature(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/util_test.go

    		wg.Add(1)
    		v := rand.Int63()
    		go func(v int64) {
    			defer wg.Done()
    			h.Update(v)
    		}(v)
    		if v > m {
    			m = v
    		}
    	}
    	wg.Wait()
    	if m != int64(h) {
    		t.Errorf("unexpected value, wanted %v, got %v", m, int64(h))
    	}
    }
    
    func TestGetCurrentResourceVersionFromStorage(t *testing.T) {
    	// test data
    	newEtcdTestStorage := func(t *testing.T, prefix string) (*etcd3testing.EtcdTestServer, storage.Interface) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 11 12:07:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. src/crypto/aes/aes_test.go

    }
    
    func mustPanic(t *testing.T, msg string, f func()) {
    	defer func() {
    		err := recover()
    		if err == nil {
    			t.Errorf("function did not panic, wanted %q", msg)
    		} else if err != msg {
    			t.Errorf("got panic %v, wanted %q", err, msg)
    		}
    	}()
    	f()
    }
    
    func BenchmarkEncrypt(b *testing.B) {
    	b.Run("AES-128", func(b *testing.B) { benchmarkEncrypt(b, encryptTests[1]) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/tool/tool.go

    		// didn't even run (not an ExitError) or it didn't exit cleanly
    		// or we're printing command lines too (-x mode).
    		// Assume if command exited cleanly (even with non-zero status)
    		// it printed any messages it wanted to print.
    		if e, ok := err.(*exec.ExitError); !ok || !e.Exited() || cfg.BuildX {
    			fmt.Fprintf(os.Stderr, "go tool %s: %s\n", toolName, err)
    		}
    		base.SetExitStatus(1)
    		return
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 18:02:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top