Alpha: fix tests

This commit is contained in:
Benjamin Canou 2018-03-18 18:11:04 +01:00
parent 0b31daeadc
commit 19d9ce1f64
4 changed files with 21 additions and 20 deletions

View File

@ -8,8 +8,9 @@
"edpkuFrRoDSEbJYgxRtLx2ps82UdaYc1WwfS9sE11yhauZt5DgCHbU",
"edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n"
],
"slot_durations" : [ 1, 0 ],
"cycle_length" : 128,
"block_per_roll_snapshot" : 32,
"time_between_blocks" : [ 1, 0 ],
"blocks_per_cycle" : 128,
"blocks_per_roll_snapshot" : 32,
"preserved_cycles" : 1,
"first_free_baking_slot" : 4
}

View File

@ -8,10 +8,10 @@
"edpkuFrRoDSEbJYgxRtLx2ps82UdaYc1WwfS9sE11yhauZt5DgCHbU",
"edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n"
],
"slot_durations" : [ 1, 0 ],
"cycle_length" : 4,
"block_per_roll_snapshot" : 2,
"voting_period_length" : 2,
"time_before_reward" : 1,
"first_free_baking_slot" : 4
"time_between_blocks" : [ 1, 0 ],
"blocks_per_cycle" : 4,
"blocks_per_roll_snapshot" : 2,
"preserved_cycles" : 1,
"first_free_baking_slot" : 4,
"blocks_per_voting_period": 2
}

View File

@ -8,9 +8,9 @@
"edpkuFrRoDSEbJYgxRtLx2ps82UdaYc1WwfS9sE11yhauZt5DgCHbU",
"edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n"
],
"slot_durations" : [ 1, 0 ],
"cycle_length" : 4,
"block_per_roll_snapshot" : 2,
"time_before_reward" : 1,
"time_between_blocks" : [ 1, 0 ],
"blocks_per_cycle" : 4,
"blocks_per_roll_snapshot" : 2,
"preserved_cycles" : 1,
"first_free_baking_slot" : 4
}

View File

@ -92,7 +92,7 @@ let test_invalid_endorsement_slot contract block =
Helpers.Endorse.endorse ~slot:16 contract block >>=? fun op ->
Helpers.Baking.bake block contract [ op ] >>= fun res ->
Assert.failed_to_preapply ~msg:__LOC__ ~op begin function
| Baking.Invalid_endorsement_slot _ -> true
| Operation.Invalid_signature -> true
| _ -> false
end res ;
return ()
@ -211,7 +211,7 @@ let run genesis =
Assert.equal_bool ~msg:__LOC__ has_right_to_endorse true ;
Assert.balance_equal
~block:block ~msg:__LOC__ b1 3_999_000_000_000L >>=? fun () ->
~block:block ~msg:__LOC__ b1 3_999_488_000_000L >>=? fun () ->
Assert.balance_equal
~block:block ~msg:__LOC__ b2 4_000_000_000_000L >>=? fun () ->
Assert.balance_equal