Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenye committed Nov 19, 2023
1 parent aa233af commit d6a30af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pw-bordercontrol/cmd/bordercontrol/stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ func TestStats(t *testing.T) {
// tests
checkPromMetricsExist(t, body, expectedMetrics)

// add some traffic
stats.incrementByteCounters(u, 1, 1024, 1048576)
stats.incrementByteCounters(u, 2, 1073741824, 1099511627776)

// test APIs
_ = getMetricsFromTestServer(t, fmt.Sprintf("%s/api/v1/feeders/", statsBaseURL))
_ = getMetricsFromTestServer(t, fmt.Sprintf("%s/api/v1/feeder/%s", statsBaseURL, u.String()))
Expand Down

0 comments on commit d6a30af

Please sign in to comment.