- Notifications
You must be signed in to change notification settings - Fork1k
Commit5198127
chore: bump github.com/stretchr/testify from 1.10.0 to 1.11.1 (#19599)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify)from 1.10.0 to 1.11.1.<details><summary>Release notes</summary><p><em>Sourced from <ahref="https://github.com/stretchr/testify/releases">github.com/stretchr/testify'sreleases</a>.</em></p><blockquote><h2>v1.11.1</h2><p>This release fixes <ahref="https://redirect.github.com/stretchr/testify/issues/1785">#1785</a>introduced in v1.11.0 where expected argument values implementing thestringer interface (<code>String() string</code>) with a method whichmutates their value, when passed to mock.Mock.On(<code>m.On("Method", <expected>).Return()</code>) oractual argument values passed to mock.Mock.Called may no longer matchone another where they previously did match. The behaviour prior tov1.11.0 where the stringer is always called is restored. Future testifyreleases may not call the stringer method at all in this case.</p><h2>What's Changed</h2><ul><li>Backport <ahref="https://redirect.github.com/stretchr/testify/issues/1786">#1786</a>to release/1.11: mock: revert to pre-v1.11.0 argument matching behaviorfor mutating stringers by <ahref="https://github.com/brackendawson"><code>@brackendawson</code></a>in <ahref="https://redirect.github.com/stretchr/testify/pull/1788">stretchr/testify#1788</a></li></ul><p><strong>Full Changelog</strong>: <ahref="https://github.com/stretchr/testify/compare/v1.11.0...v1.11.1">https://github.com/stretchr/testify/compare/v1.11.0...v1.11.1</a></p><h2>v1.11.0</h2><h2>What's Changed</h2><h3>Functional Changes</h3><p>v1.11.0 Includes a number of performance improvements.</p><ul><li>Call stack perf change for CallerInfo by <ahref="https://github.com/mikeauclair"><code>@mikeauclair</code></a> in<ahref="https://redirect.github.com/stretchr/testify/pull/1614">stretchr/testify#1614</a></li><li>Lazily render mock diff output on successful match by <ahref="https://github.com/mikeauclair"><code>@mikeauclair</code></a> in<ahref="https://redirect.github.com/stretchr/testify/pull/1615">stretchr/testify#1615</a></li><li>assert: check early in Eventually, EventuallyWithT, and Never by <ahref="https://github.com/cszczepaniak"><code>@cszczepaniak</code></a>in <ahref="https://redirect.github.com/stretchr/testify/pull/1427">stretchr/testify#1427</a></li><li>assert: add IsNotType by <ahref="https://github.com/bartventer"><code>@bartventer</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1730">stretchr/testify#1730</a></li><li>assert.JSONEq: shortcut if same strings by <ahref="https://github.com/dolmen"><code>@dolmen</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1754">stretchr/testify#1754</a></li><li>assert.YAMLEq: shortcut if same strings by <ahref="https://github.com/dolmen"><code>@dolmen</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1755">stretchr/testify#1755</a></li><li>assert: faster and simpler isEmpty using reflect.Value.IsZero by <ahref="https://github.com/dolmen"><code>@dolmen</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1761">stretchr/testify#1761</a></li><li>suite: faster methods filtering (internal refactor) by <ahref="https://github.com/dolmen"><code>@dolmen</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1758">stretchr/testify#1758</a></li></ul><h3>Fixes</h3><ul><li>assert.ErrorAs: log target type by <ahref="https://github.com/craig65535"><code>@craig65535</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1345">stretchr/testify#1345</a></li><li>Fix failure message formatting for Positive and Negative asserts in<ahref="https://redirect.github.com/stretchr/testify/pull/1062">stretchr/testify#1062</a></li><li>Improve ErrorIs message when error is nil but an error was expectedby <a href="https://github.com/tsioftas"><code>@tsioftas</code></a> in<ahref="https://redirect.github.com/stretchr/testify/pull/1681">stretchr/testify#1681</a></li><li>fix Subset/NotSubset when calling with mixed input types by <ahref="https://github.com/siliconbrain"><code>@siliconbrain</code></a>in <ahref="https://redirect.github.com/stretchr/testify/pull/1729">stretchr/testify#1729</a></li><li>Improve ErrorAs failure message when error is nil by <ahref="https://github.com/ccoVeille"><code>@ccoVeille</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1734">stretchr/testify#1734</a></li><li>mock.AssertNumberOfCalls: improve error msg by <ahref="https://github.com/3scalation"><code>@3scalation</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1743">stretchr/testify#1743</a></li></ul><h3>Documentation, Build & CI</h3><ul><li>docs: Fix typo in README by <ahref="https://github.com/alexandear"><code>@alexandear</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1688">stretchr/testify#1688</a></li><li>Replace deprecated io/ioutil with io and os by <ahref="https://github.com/alexandear"><code>@alexandear</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1684">stretchr/testify#1684</a></li><li>Document consequences of calling t.FailNow() by <ahref="https://github.com/greg0ire"><code>@greg0ire</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1710">stretchr/testify#1710</a></li><li>chore: update docs for Unset <ahref="https://redirect.github.com/stretchr/testify/issues/1621">#1621</a>by <a href="https://github.com/techfg"><code>@techfg</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1709">stretchr/testify#1709</a></li><li>README: apply gofmt to examples by <ahref="https://github.com/alexandear"><code>@alexandear</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1687">stretchr/testify#1687</a></li><li>refactor: use %q and %T to simplify fmt.Sprintf by <ahref="https://github.com/alexandear"><code>@alexandear</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1674">stretchr/testify#1674</a></li><li>Propose Christophe Colombier (ccoVeille) as approver by <ahref="https://github.com/brackendawson"><code>@brackendawson</code></a>in <ahref="https://redirect.github.com/stretchr/testify/pull/1716">stretchr/testify#1716</a></li><li>Update documentation for the Error function in assert or requirepackage by <ahref="https://github.com/architagr"><code>@architagr</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1675">stretchr/testify#1675</a></li><li>assert: remove deprecated build constraints by <ahref="https://github.com/alexandear"><code>@alexandear</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1671">stretchr/testify#1671</a></li><li>assert: apply gofumpt to internal test suite by <ahref="https://github.com/ccoVeille"><code>@ccoVeille</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1739">stretchr/testify#1739</a></li><li>CI: fix shebang in .ci.*.sh scripts by <ahref="https://github.com/dolmen"><code>@dolmen</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1746">stretchr/testify#1746</a></li><li>assert,require: enable parallel testing on (almost) all top tests by<a href="https://github.com/dolmen"><code>@dolmen</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1747">stretchr/testify#1747</a></li><li>suite.Passed: add one more status test report by <ahref="https://github.com/Ararsa-Derese"><code>@Ararsa-Derese</code></a>in <ahref="https://redirect.github.com/stretchr/testify/pull/1706">stretchr/testify#1706</a></li><li>Add Helper() method in internal mocks and assert.CollectT by <ahref="https://github.com/dolmen"><code>@dolmen</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1423">stretchr/testify#1423</a></li><li>assert.Same/NotSame: improve usage of Sprintf by <ahref="https://github.com/ccoVeille"><code>@ccoVeille</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1742">stretchr/testify#1742</a></li><li>mock: enable parallel testing on internal testsuite by <ahref="https://github.com/dolmen"><code>@dolmen</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1756">stretchr/testify#1756</a></li><li>suite: cleanup use of 'testing' internals at runtime by <ahref="https://github.com/dolmen"><code>@dolmen</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1751">stretchr/testify#1751</a></li><li>assert: check test failure message for Empty and NotEmpty by <ahref="https://github.com/ccoVeille"><code>@ccoVeille</code></a> in <ahref="https://redirect.github.com/stretchr/testify/pull/1745">stretchr/testify#1745</a></li></ul><!-- raw HTML omitted --></blockquote><p>... (truncated)</p></details><details><summary>Commits</summary><ul><li><ahref="https://github.com/stretchr/testify/commit/2a57335dc9cd6833daa820bc94d9b40c26a7917d"><code>2a57335</code></a>Merge pull request <ahref="https://redirect.github.com/stretchr/testify/issues/1788">#1788</a>from brackendawson/1785-backport-1.11</li><li><ahref="https://github.com/stretchr/testify/commit/af8c91234f184009f57ef29027b39ca89cb00100"><code>af8c912</code></a>Backport <ahref="https://redirect.github.com/stretchr/testify/issues/1786">#1786</a>to release/1.11</li><li><ahref="https://github.com/stretchr/testify/commit/b7801fbf5cd58d201296d5d0e132d1849966dbd4"><code>b7801fb</code></a>Merge pull request <ahref="https://redirect.github.com/stretchr/testify/issues/1778">#1778</a>from stretchr/dependabot/github_actions/actions/chec...</li><li><ahref="https://github.com/stretchr/testify/commit/69831f3b08c40d56a09d0be93e9d5ae034f1590b"><code>69831f3</code></a>build(deps): bump actions/checkout from 4 to 5</li><li><ahref="https://github.com/stretchr/testify/commit/a53be35c3b0cfcd5189cffcfd75df60ea581104c"><code>a53be35</code></a>Improve captureTestingT helper</li><li><ahref="https://github.com/stretchr/testify/commit/aafb604176db7e1f2c9810bc90d644291d057687"><code>aafb604</code></a>mock: improve formatting of error message</li><li><ahref="https://github.com/stretchr/testify/commit/7218e0390acd2aea3edb18574110ec2753c0aeef"><code>7218e03</code></a>improve error msg</li><li><ahref="https://github.com/stretchr/testify/commit/929a2126c2702df436312656a0304580b526c6e9"><code>929a212</code></a>Merge pull request <ahref="https://redirect.github.com/stretchr/testify/issues/1758">#1758</a>from stretchr/dolmen/suite-faster-method-filtering</li><li><ahref="https://github.com/stretchr/testify/commit/bc7459ec38128532ff32f23cfab4ea0b725210f2"><code>bc7459e</code></a>suite: faster filtering of methods (-testify.m)</li><li><ahref="https://github.com/stretchr/testify/commit/7d37b5c962954410bcd7a71ff3a77c79514056d1"><code>7d37b5c</code></a>suite: refactor methodFilter</li><li>Additional commits viewable in <ahref="https://github.com/stretchr/testify/compare/v1.10.0...v1.11.1">compareview</a></li></ul></details><br />[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)Dependabot will resolve any conflicts with this PR as long as you don'talter it yourself. You can also trigger a rebase manually by commenting`@dependabot rebase`.[//]: # (dependabot-automerge-start)[//]: # (dependabot-automerge-end)---<details><summary>Dependabot commands and options</summary><br />You can trigger Dependabot actions by commenting on this PR:- `@dependabot rebase` will rebase this PR- `@dependabot recreate` will recreate this PR, overwriting any editsthat have been made to it- `@dependabot merge` will merge this PR after your CI passes on it- `@dependabot squash and merge` will squash and merge this PR afteryour CI passes on it- `@dependabot cancel merge` will cancel a previously requested mergeand block automerging- `@dependabot reopen` will reopen this PR if it is closed- `@dependabot close` will close this PR and stop Dependabot recreatingit. You can achieve the same result by closing it manually- `@dependabot show <dependency name> ignore conditions` will show allof the ignore conditions of the specified dependency- `@dependabot ignore this major version` will close this PR and stopDependabot creating any more for this major version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this minor version` will close this PR and stopDependabot creating any more for this minor version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this dependency` will close this PR and stopDependabot creating any more for this dependency (unless you reopen thePR or upgrade to it yourself)</details>---------Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Co-authored-by: Ethan Dickson <ethan@coder.com>1 parenta3b8176 commit5198127
File tree
4 files changed
+21
-18
lines changed- coderd
- metricscache
- prometheusmetrics
4 files changed
+21
-18
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
261 | 261 |
| |
262 | 262 |
| |
263 | 263 |
| |
264 |
| - | |
| 264 | + | |
| 265 | + | |
265 | 266 |
| |
266 |
| - | |
| 267 | + | |
267 | 268 |
| |
268 | 269 |
| |
269 |
| - | |
270 |
| - | |
| 270 | + | |
| 271 | + | |
271 | 272 |
| |
272 |
| - | |
273 |
| - | |
274 |
| - | |
275 |
| - | |
276 |
| - | |
| 273 | + | |
| 274 | + | |
277 | 275 |
| |
| 276 | + | |
278 | 277 |
| |
279 | 278 |
| |
280 | 279 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 |
| - | |
| 197 | + | |
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
201 |
| - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
202 | 204 |
| |
203 |
| - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
204 | 208 |
| |
205 |
| - | |
| 209 | + | |
206 | 210 |
| |
207 | 211 |
| |
208 | 212 |
| |
| |||
215 | 219 |
| |
216 | 220 |
| |
217 | 221 |
| |
218 |
| - | |
| 222 | + | |
219 | 223 |
| |
220 | 224 |
| |
221 | 225 |
| |
| |||
229 | 233 |
| |
230 | 234 |
| |
231 | 235 |
| |
232 |
| - | |
| 236 | + | |
233 | 237 |
| |
234 | 238 |
| |
235 | 239 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 |
| - | |
| 178 | + | |
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1769 | 1769 |
| |
1770 | 1770 |
| |
1771 | 1771 |
| |
1772 |
| - | |
1773 |
| - | |
| 1772 | + | |
| 1773 | + | |
1774 | 1774 |
| |
1775 | 1775 |
| |
1776 | 1776 |
| |
|
0 commit comments
Comments
(0)