Fix ints being capped at 32-bits on 32-bit archs (#4054)
(cherry picked from commit fe4d3cd117)
This commit is contained in:
committed by
Daniel Nelson
parent
291a8f0252
commit
460a5ced87
@@ -129,6 +129,20 @@ var tests = []struct {
|
||||
),
|
||||
output: []byte("cpu value=42i 0\n"),
|
||||
},
|
||||
{
|
||||
name: "integer field 64-bit",
|
||||
input: MustMetric(
|
||||
metric.New(
|
||||
"cpu",
|
||||
map[string]string{},
|
||||
map[string]interface{}{
|
||||
"value": int64(123456789012345),
|
||||
},
|
||||
time.Unix(0, 0),
|
||||
),
|
||||
),
|
||||
output: []byte("cpu value=123456789012345i 0\n"),
|
||||
},
|
||||
{
|
||||
name: "uint field",
|
||||
input: MustMetric(
|
||||
|
||||
Reference in New Issue
Block a user