added unit test
This commit is contained in:
parent
39179a9721
commit
3f669c3d19
|
@ -8,3 +8,4 @@ lwd-api.html
|
|||
*.orig
|
||||
__debug_bin
|
||||
.vscode
|
||||
frontend/unittestcache/
|
||||
|
|
|
@ -191,6 +191,9 @@ func TestGetLatestBlock(t *testing.T) {
|
|||
if blockID.Height != 380640 {
|
||||
t.Fatal("unexpected blockID.height")
|
||||
}
|
||||
if string(blockID.Hash) != string(block.Hash) {
|
||||
t.Fatal("unexpected blockID.hash")
|
||||
}
|
||||
step = 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue