Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 4,774 for watt (0.05 sec)

  1. src/os/signal/signal_test.go

    	c, stop := NotifyContext(parent, syscall.SIGINT)
    	defer stop()
    
    	if want, got := "signal.NotifyContext(context.Background.WithCancel, [interrupt])", fmt.Sprint(c); want != got {
    		t.Errorf("c.String() = %q, want %q", got, want)
    	}
    
    	cancelParent()
    	<-c.Done()
    	if got := c.Err(); got != context.Canceled {
    		t.Errorf("c.Err() = %q, want %q", got, context.Canceled)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 27.2K bytes
    - Viewed (0)
  2. src/sync/atomic/value_test.go

    			atomic.AddUint64(&count, c)
    			g.Done()
    		}()
    	}
    	g.Wait()
    	if want, got := (m*n-1)*(m*n)/2, count+v.Load().(uint64); got != want {
    		t.Errorf("sum from 0 to %d was %d, want %v", m*n-1, got, want)
    	}
    }
    
    var heapA, heapB = struct{ uint }{0}, struct{ uint }{0}
    
    var Value_CompareAndSwapTests = []struct {
    	init any
    	new  any
    	old  any
    	want bool
    	err  any
    }{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/wait/error_test.go

    	tests := []struct {
    		name string
    		err  error
    		want bool
    	}{
    		{
    			err:  ErrWaitTimeout,
    			want: true,
    		},
    		{
    			err:  context.Canceled,
    			want: true,
    		}, {
    			err:  context.DeadlineExceeded,
    			want: true,
    		},
    		{
    			err:  errWrapper{ErrWaitTimeout},
    			want: true,
    		},
    		{
    			err:  errWrapper{context.Canceled},
    			want: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/runtime/proc_test.go

    	}
    	output := runTestProg(t, "testprog", "AsyncPreempt")
    	want := "OK\n"
    	if output != want {
    		t.Fatalf("want %s, got %s\n", want, output)
    	}
    }
    
    func TestGCFairness(t *testing.T) {
    	output := runTestProg(t, "testprog", "GCFairness")
    	want := "OK\n"
    	if output != want {
    		t.Fatalf("want %s, got %s\n", want, output)
    	}
    }
    
    func TestGCFairness2(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  5. src/runtime/profbuf_test.go

    		write(t, b, unsafe.Pointer(&myTags[2]), 99, []uint64{101, 102}, []uintptr{201, 202, 203, 204})
    		wait()
    		wait = readBlock(t, b, nil, nil)
    		b.Close()
    		wait()
    		wait = readBlock(t, b, nil, nil)
    		wait()
    		readEOF(t, b)
    	})
    
    	t.Run("DataWraparound", func(t *testing.T) {
    		b := NewProfBuf(2, 16, 1024)
    		for i := 0; i < 10; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 20:04:56 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_concurrent.txt

    env GO111MODULE=on
    
    # Concurrent builds should succeed, even if they need to download modules.
    go get ./x ./y
    go build ./x &
    go build ./y
    wait
    
    # Concurrent builds should update go.sum to the union of the hashes for the
    # modules they read.
    cmp go.sum go.sum.want
    
    -- go.mod --
    module golang.org/issue/26794
    
    require (
    	golang.org/x/text v0.3.0
    	rsc.io/sampler v1.0.0
    )
    -- x/x.go --
    package x
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 800 bytes
    - Viewed (0)
  7. src/runtime/metrics_test.go

    		}
    	}
    	if totalVirtual.got != totalVirtual.want {
    		t.Errorf(`"/memory/classes/total:bytes" does not match sum of /memory/classes/**: got %d, want %d`, totalVirtual.got, totalVirtual.want)
    	}
    	if got, want := objects.allocs-objects.frees, objects.total; got != want {
    		t.Errorf("mismatch between object alloc/free tallies and total: got %d, want %d", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  8. cluster/gce/gci/health-monitor.sh

          systemctl kill --kill-who=main "${container_runtime_name}"
          # Wait for a while, as we don't want to kill it again before it is really up.
          sleep 120
        else
          sleep "${SLEEP_SECONDS}"
        fi
      done
    }
    
    function kubelet_monitoring {
      echo "Wait for 2 minutes for kubelet to be functional"
      # TODO(andyzheng0831): replace it with a more reliable method if possible.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 20 09:19:08 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/waitgroup/ratelimited_waitgroup_test.go

    import (
    	"context"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    
    	"golang.org/x/time/rate"
    	"k8s.io/apimachinery/pkg/util/wait"
    )
    
    func TestRateLimitedSafeWaitGroup(t *testing.T) {
    	// we want to keep track of how many times rate limiter Wait method is
    	// being invoked, both before and after the wait group is in waiting mode.
    	limiter := &limiterWrapper{}
    
    	// we expect the context passed by the factory to be used
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 21 14:08:00 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. src/runtime/runtime_test.go

    		}
    	}
    
    	check(0)
    	want := 1
    	for i := 1; i <= 100; i++ {
    		x = append(x, 1)
    		check(want)
    		if i&(i-1) == 0 {
    			want = 2 * i
    		}
    	}
    }
    
    var One = []int64{1}
    
    func TestAppendSliceGrowth(t *testing.T) {
    	var x []int64
    	check := func(want int) {
    		if cap(x) != want {
    			t.Errorf("len=%d, cap=%d, want cap=%d", len(x), cap(x), want)
    		}
    	}
    
    	check(0)
    	want := 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top