Commit 2185a92
committed
Close the base_url construction-guard test clients
Make the two CohereRerankProvider base_url construction-guard tests async
and await provider.aclose() after each successful construction, so the
underlying httpx.AsyncClient is not left open (a ResourceWarning under
strict runs). The /v2-suffix rejection raises before a client is created,
so only the accepted constructions need closing.1 parent 8160bc9 commit 2185a92
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
| 795 | + | |
796 | 796 | | |
797 | 797 | | |
798 | | - | |
799 | | - | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
800 | 803 | | |
801 | 804 | | |
802 | | - | |
| 805 | + | |
803 | 806 | | |
804 | 807 | | |
805 | 808 | | |
806 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
807 | 813 | | |
808 | 814 | | |
809 | 815 | | |
| |||
0 commit comments