Skip to content

Conversation

@blathers-crl
Copy link

@blathers-crl blathers-crl bot commented Sep 8, 2025

Backport 1/1 commits from #152880 on behalf of @nicktrav.


Fix a testing bug introduced in #131545 where the Contains check arguments were reversed. The error string being searched should precede the string being searched for. The examples from the API docs:

//	require.Contains(t, "Hello World", "World")
//	require.Contains(t, ["Hello", "World"], "World")
//	require.Contains(t, {"Hello": "World"}, "Hello")

Release note: None

Epic: None


Release justification: Test only.

Fix a testing bug introduced in #131545 where the `Contains` check
arguments were reversed. The error string being _searched_ should
precede the string being _searched for_. The examples from the API docs:

```
//	require.Contains(t, "Hello World", "World")
//	require.Contains(t, ["Hello", "World"], "World")
//	require.Contains(t, {"Hello": "World"}, "Hello")
```

Release note: None
@blathers-crl blathers-crl bot force-pushed the blathers/backport-release-25.3-152880 branch from 9ae6f1f to 1c2806f Compare September 8, 2025 23:53
@blathers-crl blathers-crl bot requested a review from a team as a code owner September 8, 2025 23:53
@blathers-crl blathers-crl bot requested review from log-head and removed request for a team September 8, 2025 23:53
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Sep 8, 2025
@blathers-crl
Copy link
Author

blathers-crl bot commented Sep 8, 2025

Thanks for opening a backport.

Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.

@blathers-crl blathers-crl bot added the backport Label PR's that are backports to older release branches label Sep 8, 2025
@blathers-crl blathers-crl bot requested a review from stevendanna September 8, 2025 23:53
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@blathers-crl blathers-crl bot added the backport-test-only Used to denote the backport has only non-production changes label Sep 9, 2025
@aerfrei aerfrei self-requested a review September 10, 2025 15:52
@nicktrav
Copy link
Collaborator

TFTR!

@nicktrav nicktrav merged commit ad3f9b1 into release-25.3 Sep 10, 2025
15 checks passed
@nicktrav nicktrav deleted the blathers/backport-release-25.3-152880 branch September 10, 2025 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Label PR's that are backports to older release branches backport-test-only Used to denote the backport has only non-production changes blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. v25.3.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants