Correct test for zero hash versus nil on empty db.

This commit is contained in:
Dave Collins 2013-09-10 10:44:26 -05:00
parent adc73cbc9d
commit d9404fe880

View file

@ -6,6 +6,7 @@ package ldb_test
import (
"github.com/conformal/btcdb"
"github.com/conformal/btcwire"
"os"
"testing"
)
@ -34,8 +35,7 @@ func TestEmptyDB(t *testing.T) {
defer db.Close()
sha, height, err := db.NewestSha()
if sha != nil {
if !sha.IsEqual(&btcwire.ShaHash{}) {
t.Errorf("sha not nil")
}
if height != -1 {