Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for wantReg (0.21 sec)

  1. src/iter/pull_test.go

    				}
    				wantNG(1)
    			}
    			wantNG(1)
    			if end < 3 {
    				stop()
    				wantNG(0)
    			}
    			for range 2 {
    				v, ok := next()
    				if v != 0 || ok != false {
    					t.Fatalf("next() = %d, %v, want %d, %v", v, ok, 0, false)
    				}
    				wantNG(0)
    			}
    			wantNG(0)
    
    			stop()
    			stop()
    			stop()
    			wantNG(0)
    		})
    	}
    }
    
    func TestPull2(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    			cd, _ := os.ReadFile(tt.inputFile)
    			err := cw.Prime(cd)
    			if cw.ztunnelDump == nil {
    				if tt.wantConfigs != 0 {
    					t.Errorf("wanted some configs loaded but config dump was nil")
    				}
    			} else if len(cw.ztunnelDump.Workloads) != tt.wantConfigs {
    				t.Errorf("wanted %v configs loaded in got %v", tt.wantConfigs, len(cw.ztunnelDump.Workloads))
    			}
    			if tt.wantErr {
    				assert.Error(t, err)
    			} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server_test.go

    			} else {
    				clientConn.SetReadDeadline(time.Now().Add(1 * time.Minute))
    			}
    			n, err := io.ReadFull(clientConn, bb)
    			if err != nil {
    				t.Fatalf("%s #%d: %s\nRead %d, wanted %d, got %x, wanted %x\n", test.name, i+1, err, n, len(bb), bb[:n], b)
    			}
    			if !bytes.Equal(b, bb) {
    				t.Fatalf("%s #%d: mismatch on read: got:%x want:%x", test.name, i+1, bb, b)
    			}
    		}
    		clientConn.Close()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. pilot/pkg/networking/util/util_test.go

    		{1_000_000, "1.0MB"},
    		{1_500_000, "1.5MB"},
    	}
    	for _, tt := range cases {
    		t.Run(fmt.Sprint(tt.in), func(t *testing.T) {
    			if got := ByteCount(tt.in); got != tt.out {
    				t.Fatalf("got %v wanted %v", got, tt.out)
    			}
    		})
    	}
    }
    
    func TestIPv6Compliant(t *testing.T) {
    	tests := []struct {
    		host  string
    		match string
    	}{
    		{"localhost", "localhost"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
  5. pkg/kubelet/images/image_gc_manager.go

    				continue
    			}
    			continue
    		}
    		remainingImages = append(remainingImages, image)
    	}
    	if len(deletionErrors) > 0 {
    		return remainingImages, fmt.Errorf("wanted to free images older than %v, encountered errors in image deletion: %v", im.policy.MaxAge, errors.NewAggregate(deletionErrors))
    	}
    	return remainingImages, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. src/net/http/serve_test.go

    		}
    	}
    
    	wantLog(func() {
    		mustGet(ts.URL + "/")
    		mustGet(ts.URL + "/close")
    	}, StateNew, StateActive, StateIdle, StateActive, StateClosed)
    
    	wantLog(func() {
    		mustGet(ts.URL + "/")
    		mustGet(ts.URL+"/", "Connection", "close")
    	}, StateNew, StateActive, StateIdle, StateActive, StateClosed)
    
    	wantLog(func() {
    		mustGet(ts.URL + "/hijack")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  7. cmd/storage-datatypes_gen.go

    	var zb0001 uint32
    	zb0001, err = dc.ReadArrayHeader()
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	if zb0001 != 18 {
    		err = msgp.ArrayError{Wanted: 18, Got: zb0001}
    		return
    	}
    	z.Total, err = dc.ReadUint64()
    	if err != nil {
    		err = msgp.WrapError(err, "Total")
    		return
    	}
    	z.Free, err = dc.ReadUint64()
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 130.6K bytes
    - Viewed (0)
  8. src/internal/trace/generation.go

    		}
    
    		// Copy out the string.
    		n, err := io.CopyN(&sb, r, int64(len))
    		if n != int64(len) {
    			return fmt.Errorf("failed to read full string: read %d but wanted %d", n, len)
    		}
    		if err != nil {
    			return fmt.Errorf("copying string data: %w", err)
    		}
    
    		// Add the string to the map.
    		s := sb.String()
    		sb.Reset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/time/time.go

    	if version != timeBinaryVersionV1 && version != timeBinaryVersionV2 {
    		return errors.New("Time.UnmarshalBinary: unsupported version")
    	}
    
    	wantLen := /*version*/ 1 + /*sec*/ 8 + /*nsec*/ 4 + /*zone offset*/ 2
    	if version == timeBinaryVersionV2 {
    		wantLen++
    	}
    	if len(buf) != wantLen {
    		return errors.New("Time.UnmarshalBinary: invalid length")
    	}
    
    	buf = buf[1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  10. pkg/controller/statefulset/stateful_set.go

    		if err != nil {
    			return nil, err
    		}
    		if fresh.UID != set.UID {
    			return nil, fmt.Errorf("original StatefulSet %v/%v is gone: got uid %v, wanted %v", set.Namespace, set.Name, fresh.UID, set.UID)
    		}
    		return fresh, nil
    	})
    }
    
    // adoptOrphanRevisions adopts any orphaned ControllerRevisions matched by set's Selector.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top