Closed roman-khimov closed 1 year ago
Even though #333 allows to proceed with update, we better investigate it at the testing system level, why does it work this way?
However this doesn't happen in migration tests.
what do u expect? Test checks that with existing ballots pending vote detected
panic occurs. If this panic - test OK, otherwise FAIL
I changed check to CheckUpdateSuccess
and got
--- FAIL: TestMigration (0.18s)
=== RUN TestMigration/mainnet-3309907/container
basic.go:213:
...
Error: Not equal:
expected: 0x1
actual : 0x2
Test: TestMigration/mainnet-3309907/container
Messages: at instruction 71 (SYSCALL): failed native call: at instruction 1240 (THROW): unhandled exception: "pending vote detected"
I'll add ballot age check to all tests.
I had expected at least a single complete successful run for mainnet. It probably doesn't worth the trouble now, this code will never be executed again.
We've got a number of
YmFsbG90cw==
("ballots") storage entries inmainnet-3309907-storage.csv
which means that migration should fail like this:However this doesn't happen in migration tests.