From 4facf2c91cee734f0ce71688653c0896f200ffc8 Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Tue, 16 Jan 2024 11:26:43 -0500 Subject: [PATCH] kv: fix assertion output in TestReplicationStatusReportIntegration Informs #117175. This doesn't fix the failing test, but it resolves the nonsensical failure message and allows us to debug the test. Release note: None --- pkg/kv/kvserver/reports/reporter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kv/kvserver/reports/reporter_test.go b/pkg/kv/kvserver/reports/reporter_test.go index efd1db852ee2..4723bb0a82fb 100644 --- a/pkg/kv/kvserver/reports/reporter_test.go +++ b/pkg/kv/kvserver/reports/reporter_test.go @@ -375,7 +375,7 @@ func checkZoneReplication(db *gosql.DB, zoneID, total, under, over, unavailable return fmt.Errorf("expected total: %d, got: %d", total, gotTotal) } if under != gotUnder { - return fmt.Errorf("expected under: %d, got: %d", total, gotUnder) + return fmt.Errorf("expected under: %d, got: %d", under, gotUnder) } if over != gotOver { return fmt.Errorf("expected over: %d, got: %d", over, gotOver)