(varnish plugin) Correct type in test case

This commit is contained in:
Lukasz Jagiello 2016-05-26 01:10:39 +00:00
parent 22e15f3b5b
commit e254ce8883
No known key found for this signature in database
GPG Key ID: AD709E6DC0024651
1 changed files with 9 additions and 9 deletions

View File

@ -84,7 +84,7 @@ func TestFieldConfig(t *testing.T) {
}()
varnishStat = fakeVarnishStat(fullOutput)
expect := map[string]uint64{
expect := map[string]int{
"all": 293,
"": 0, // default
"MAIN.uptime": 1,
@ -130,18 +130,18 @@ MEMPOOL.vbc.sz_wanted 88 . Size requested
var parsedSmOutput = map[string]map[string]interface{}{
"MAIN": map[string]interface{}{
"uptime": 895,
"cache_hit": 95,
"cache_miss": 5,
"uptime": uint64(895),
"cache_hit": uint64(95),
"cache_miss": uint64(5),
},
"MGT": map[string]interface{}{
"uptime": 896,
"child_start": 1,
"uptime": uint64(896),
"child_start": uint64(1),
},
"MEMPOOL": map[string]interface{}{
"vbc.live": 0,
"vbc.pool": 10,
"vbc.sz_wanted": 88,
"vbc.live": uint64(0),
"vbc.pool": uint64(10),
"vbc.sz_wanted": uint64(88),
},
}