Finish a TODO in the message headers tests.

This commit is contained in:
Dave Collins 2013-10-24 23:39:49 -05:00
parent d1edbf1f0b
commit a4c5c620c6

View file

@ -50,8 +50,7 @@ func TestHeaders(t *testing.T) {
for i := 0; i < btcwire.MaxBlockHeadersPerMsg+1; i++ {
err = msg.AddBlockHeader(bh)
}
// TODO(davec): Check for actual error.
if err == nil {
if reflect.TypeOf(err) != reflect.TypeOf(&btcwire.MessageError{}) {
t.Errorf("AddBlockHeader: expected error on too many headers " +
"not received")
}