Simplify checked header repository tests

- Use assertions instead of comments to document expectations
- Also randomize the fake timestamp in test data
This commit is contained in:
Rob Mulholand
2019-09-10 13:47:43 -05:00
parent b9f3b9f946
commit ce91b0d9e6
4 changed files with 56 additions and 73 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ var (
FakeAddress = common.HexToAddress("0x" + RandomString(40))
FakeError = errors.New("failed")
FakeHash = common.BytesToHash([]byte{1, 2, 3, 4, 5})
fakeTimestamp = int64(111111111)
fakeTimestamp = rand.Int63()
)
var rawFakeHeader, _ = json.Marshal(types.Header{})