Skip to content

Commit

Permalink
Update unit tests for average mem metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Austin committed Jun 30, 2023
1 parent b4fc85e commit 732ff23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/metrics/sources/nginx_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ func TestNginxWorkerCollector(t *testing.T) {
case "nginx.workers.io.kbs_r":
assert.Equal(t, float64(0), metric.Value)
case "nginx.workers.mem.rss":
assert.Equal(t, float64(0), metric.Value)
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.mem.rss_pct":
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.rlimit_nofile":
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.count":
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.mem.vms":
assert.Equal(t, float64(0), metric.Value)
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.fds_count":
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.cpu.user":
Expand Down Expand Up @@ -148,15 +148,15 @@ func TestNginxWorkerCollector(t *testing.T) {
case "nginx.workers.io.kbs_r":
assert.Equal(t, float64(0), metric.Value)
case "nginx.workers.mem.rss":
assert.Equal(t, float64(0), metric.Value)
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.mem.rss_pct":
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.rlimit_nofile":
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.count":
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.mem.vms":
assert.Equal(t, float64(0), metric.Value)
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.fds_count":
assert.Equal(t, float64(1), metric.Value)
case "nginx.workers.cpu.user":
Expand Down

0 comments on commit 732ff23

Please sign in to comment.