mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
context propagation: pkg/database/bouncers (#3249)
This commit is contained in:
parent
fee3debdcc
commit
4a2a663227
6 changed files with 51 additions and 41 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue