Fix nginx_plus tests with 32bit int
This commit is contained in:
parent
3398c43c75
commit
2bd16ab923
|
@ -162,10 +162,10 @@ type Status struct {
|
||||||
} `json:"processes"`
|
} `json:"processes"`
|
||||||
|
|
||||||
Connections struct {
|
Connections struct {
|
||||||
Accepted int `json:"accepted"`
|
Accepted int64 `json:"accepted"`
|
||||||
Dropped int `json:"dropped"`
|
Dropped int64 `json:"dropped"`
|
||||||
Active int `json:"active"`
|
Active int64 `json:"active"`
|
||||||
Idle int `json:"idle"`
|
Idle int64 `json:"idle"`
|
||||||
} `json:"connections"`
|
} `json:"connections"`
|
||||||
|
|
||||||
Ssl *struct { // added in version 6
|
Ssl *struct { // added in version 6
|
||||||
|
|
|
@ -25,7 +25,7 @@ const sampleStatusResponse = `
|
||||||
"processes": {
|
"processes": {
|
||||||
"respawned": 9999
|
"respawned": 9999
|
||||||
},
|
},
|
||||||
"connections": {
|
"connections": {
|
||||||
"accepted": 1234567890000,
|
"accepted": 1234567890000,
|
||||||
"dropped": 2345678900000,
|
"dropped": 2345678900000,
|
||||||
"active": 345,
|
"active": 345,
|
||||||
|
@ -306,10 +306,10 @@ func TestNginxPlusGeneratesMetrics(t *testing.T) {
|
||||||
t,
|
t,
|
||||||
"nginx_plus_connections",
|
"nginx_plus_connections",
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
"accepted": int(1234567890000),
|
"accepted": int64(1234567890000),
|
||||||
"dropped": int(2345678900000),
|
"dropped": int64(2345678900000),
|
||||||
"active": int(345),
|
"active": int64(345),
|
||||||
"idle": int(567),
|
"idle": int64(567),
|
||||||
},
|
},
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"server": host,
|
"server": host,
|
||||||
|
|
Loading…
Reference in New Issue