This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test "get pool status with raise before checkin", %{finch_name: finch_name} do | |
| stub(Mint.HTTP, :request, fn _, _, _, _, _ -> | |
| raise "unexpected error" | |
| end) | |
| start_supervised!( | |
| {Finch, | |
| name: finch_name, | |
| pools: %{ | |
| default: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test "get pool status with not reusable connections", %{bypass: bypass, finch_name: finch_name} do | |
| start_supervised!( | |
| {Finch, | |
| name: finch_name, | |
| pools: %{ | |
| default: [ | |
| protocols: [:http1], | |
| start_pool_metrics?: true, | |
| conn_max_idle_time: 1, | |
| size: 10 |