Skip to content

Commit

Permalink
Bump to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Nov 9, 2023
1 parent d5cc014 commit e96582b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions connect_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func TestConcurrentStreams(t *testing.T) {
server := memhttptest.NewServer(t, mux)
var done, start sync.WaitGroup
start.Add(1)
for i := 0; i < runtime.GOMAXPROCS(0)*2; i++ {
for i := 0; i < runtime.GOMAXPROCS(0)*8; i++ {
done.Add(1)
go func() {
defer done.Done()
Expand Down Expand Up @@ -511,8 +511,6 @@ func TestConcurrentStreams(t *testing.T) {
}
start.Done()
done.Wait()
t.Error("NUMCPU", runtime.NumCPU())
t.Error("GOMAXPROCS", runtime.GOMAXPROCS(0))
}

func TestHeaderBasic(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/memhttp/memhttp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (

func TestServerTransport(t *testing.T) {
t.Parallel()
concurrency := runtime.GOMAXPROCS(0) * 2
concurrency := runtime.GOMAXPROCS(0) * 8
const greeting = "Hello, world!"

handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit e96582b

Please sign in to comment.