make OptimalSelection2 test pass

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
vyzo 2020-08-13 12:52:15 +03:00 committed by Jakub Sztandera
parent 0f5598e59b
commit 1aa8b6cab2
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -755,9 +755,9 @@ func TestOptimalMessageSelection2(t *testing.T) {
nMessages := int(5 * build.BlockGasLimit / gasLimit) nMessages := int(5 * build.BlockGasLimit / gasLimit)
for i := 0; i < nMessages; i++ { for i := 0; i < nMessages; i++ {
bias := (nMessages - i) / 3 bias := (nMessages - i) / 3
m := makeTestMessage(w1, a1, a2, uint64(i), gasLimit, uint64(10000+i%3+bias)) m := makeTestMessage(w1, a1, a2, uint64(i), gasLimit, uint64(200000+i%3+bias))
mustAdd(t, mp, m) mustAdd(t, mp, m)
m = makeTestMessage(w2, a2, a1, uint64(i), gasLimit, uint64(1+i%3+bias)) m = makeTestMessage(w2, a2, a1, uint64(i), gasLimit, uint64(190000+i%3+bias))
mustAdd(t, mp, m) mustAdd(t, mp, m)
} }