Skip to content

Stop testing implementation detail of exact transaction count - #1304

Merged
sgrif merged 3 commits into
mainfrom
sg-stop-testing-impl-detail
Aug 3, 2026
Merged

Stop testing implementation detail of exact transaction count#1304
sgrif merged 3 commits into
mainfrom
sg-stop-testing-impl-detail

Conversation

@sgrif

@sgrif sgrif commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This test is purely trying to test that 2pc works. If the data was inserted correctly, appears where we expect it to be, and the 2pc stats are correct, we don't need to concern ourselves with exactly how many health checks and/or schema queries ran during that time.

This test is purely trying to test that 2pc works. If the data was
inserted correctly, appears where we expect it to be, and the 2pc stats
are correct, we don't need to concern ourselves with exactly how many
health checks and/or schema queries ran during that time.
@sgrif
sgrif requested a review from meskill August 3, 2026 16:37
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread integration/go/go_pgx/pg_tests_test.go Outdated
func assertShowFieldGt(t *testing.T, query string, field string, value int64, user string, database string, shard int64, role string) {
actualValue := showField(t, query, field, user, database, shard, role)
assert.Contains(t, values, actualValue, fmt.Sprintf("\"%s\" in %s is not one of %v", field, query, values))
assert.Greater(t, value, actualValue, fmt.Sprintf("\"%s\" in %s is not greater than %d", field, query, value))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Greater or equal

@levkk levkk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One flaky test down!

@sgrif
sgrif merged commit b7da5df into main Aug 3, 2026
47 checks passed
@sgrif
sgrif deleted the sg-stop-testing-impl-detail branch August 3, 2026 18:10
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.

2 participants