fix(server/v1): don't fail put on new v1 key

We weren't checking for PrevNode being nil in the v1 code path. Do this
and add a test.

Fixes #557
This commit is contained in:
Brandon Philips
2014-02-10 18:59:56 -08:00
parent 137f87c414
commit 68383b1293
3 changed files with 36 additions and 1 deletions

View File

@@ -14,6 +14,9 @@ go test -v ./server
go test -i ./config
go test -v ./config
go test -i ./server/v1/tests
go test -v ./server/v1/tests
go test -i ./server/v2/tests
go test -v ./server/v2/tests