forked from cerc-io/ipld-eth-server
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:
+1
-1
@@ -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{})
|
||||
|
||||
Reference in New Issue
Block a user