context propagation: pkg/database/bouncers (#3249)

This commit is contained in:
mmetc 2024-09-20 20:45:21 +02:00 committed by GitHub
parent fee3debdcc
commit 4a2a663227
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 51 additions and 41 deletions

View file

@ -371,7 +371,7 @@ func TestRCMetrics(t *testing.T) {
assert.Equal(t, tt.expectedStatusCode, w.Code)
assert.Contains(t, w.Body.String(), tt.expectedResponse)
bouncer, _ := dbClient.SelectBouncerByName("test")
bouncer, _ := dbClient.SelectBouncerByName(ctx, "test")
metrics, _ := dbClient.GetBouncerUsageMetricsByName(ctx, "test")
assert.Len(t, metrics, tt.expectedMetricsCount)