aboutsummaryrefslogtreecommitdiff
path: root/workerpool_test.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-04-15 13:43:25 +0300
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-04-15 13:47:42 +0300
commit33163198b145f9c1e96c6f943b727aa7495305b5 (patch)
tree8066da9733300eb337accc214ca17ae0a31492f9 /workerpool_test.go
parentUpdated performance numbers in README (diff)
downloadfasthttp-33163198b145f9c1e96c6f943b727aa7495305b5.tar.gz
fasthttp-33163198b145f9c1e96c6f943b727aa7495305b5.tar.bz2
fasthttp-33163198b145f9c1e96c6f943b727aa7495305b5.zip
sped up slow tests under 'go test -race'
Diffstat (limited to 'workerpool_test.go')
-rw-r--r--workerpool_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/workerpool_test.go b/workerpool_test.go
index 93ca62b..eceb187 100644
--- a/workerpool_test.go
+++ b/workerpool_test.go
@@ -50,7 +50,7 @@ func TestWorkerPoolMaxWorkersCountSerial(t *testing.T) {
}
func TestWorkerPoolMaxWorkersCountConcurrent(t *testing.T) {
- concurrency := 10
+ concurrency := 4
ch := make(chan struct{}, concurrency)
for i := 0; i < concurrency; i++ {
go func() {
@@ -68,7 +68,7 @@ func TestWorkerPoolMaxWorkersCountConcurrent(t *testing.T) {
}
func testWorkerPoolMaxWorkersCountMulti(t *testing.T) {
- for i := 0; i < 10; i++ {
+ for i := 0; i < 5; i++ {
testWorkerPoolMaxWorkersCount(t)
}
}