Skip to content

Commit

Permalink
Use -N for faster tests
Browse files Browse the repository at this point in the history
http2 v4.1.0 disables flow control, this makes generator of infinite body
consume too much CPU and starve other threads, making tests slow. Giving more
threads to the test binary speeds the tests up quite significantly.

Upstream Issue: kazu-yamamoto/http2#62
  • Loading branch information
akshaymankar committed Apr 4, 2023
1 parent 264fc5f commit 1d26000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/http2-manager/http2-manager.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test-suite http2-manager-tests
ghc-options:
-Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
-Wredundant-constraints -threaded
-Wredundant-constraints -threaded -with-rtsopts=-N

-- cabal-fmt: expand test
other-modules:
Expand Down

0 comments on commit 1d26000

Please sign in to comment.