client: test for non-integer X-Etcd-Index

This commit is contained in:
Brian Waldon 2015-01-29 09:51:47 -08:00 committed by Yicheng Qin
parent 8a6b72b08d
commit 32ff3ce26f

View File

@ -560,6 +560,14 @@ func TestUnmarshalSuccessfulResponse(t *testing.T) {
wantRes: nil,
wantErr: true,
},
// non-integer index
{
hdr: "poo",
body: `{}`,
wantRes: nil,
wantErr: true,
},
}
for i, tt := range tests {