Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: tidy tenant testing client #72692

Merged
merged 1 commit into from
Nov 16, 2021
Merged

server: tidy tenant testing client #72692

merged 1 commit into from
Nov 16, 2021

Conversation

matthewtodd
Copy link
Contributor

Pushing these assertions into the test client removes some of the line
noise from the tests, making them easier to read. We also generalize the
tenant http client to provide plain text as well as json responses.

Release note: None

@matthewtodd matthewtodd requested a review from a team November 12, 2021 17:12
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@Azhng Azhng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @Azhng and @matthewtodd)


pkg/ccl/serverccl/statusccl/tenant_status_test.go, line 721 at r1 (raw file):

	sqlPod0 := helper.testCluster().tenantConn(0)
	results := make(chan struct{})
	errs := make(chan error)

nit: s/errs/errChan/

Pushing these assertions into the test client removes some of the line
noise from the tests, making them easier to read. We also generalize the
tenant http client to provide plain text as well as json responses.

Release note: None
@matthewtodd
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 15, 2021

Build failed (retrying...):

@craig craig bot merged commit cb5d510 into cockroachdb:master Nov 16, 2021
@craig
Copy link
Contributor

craig bot commented Nov 16, 2021

Build succeeded:

@matthewtodd matthewtodd deleted the tenant-testutils branch November 16, 2021 16:02
@Azhng
Copy link
Contributor

Azhng commented Dec 3, 2021

@matthewtodd do you mind If I backport this PR to 21.2 ?

@matthewtodd
Copy link
Contributor Author

Go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants