ethereum-order-statistic-tree icon indicating copy to clipboard operation
ethereum-order-statistic-tree copied to clipboard

sometimes "run tests" works, mostly it doesn't

Open mike80439 opened this issue 10 years ago • 3 comments
trafficstars

Run tests button usually builds the table of values. When it fails, second row "percentile(5)" shows failed, fifth row "rank(5)" shows passed, seventh "rank(5)" shows failed, tenth row "count()" shows failed, etc.

Rightmost column shows { "value":0,"dupes":0} in all rows. Same behavior in Mist and AlethZero.

When the run tests transaction sits in pending for a while, it doesn't build the table at all.

mike80439 avatar Feb 25 '15 13:02 mike80439

Thanks, I can dupe some of this behavior... I probably am using ethereumjs in a way it isn't intended, I will investigate when I have time. (though I think this issue is related to testing, the contract itself isn't responsible for the problem, so a bit lower priority)

drcode avatar Feb 25 '15 22:02 drcode

I will leave this issue open and fix it once I've had time to experiment with the latest go-ethereum.... In the latest verison, I think the compiler may want the contract to be mined in a block first before it lets you run transactions against it, so just waiting 12 sec before clicking "run tests" solves the issue temporarily (but I need to investigate more)

drcode avatar Mar 08 '15 15:03 drcode

Actually, I waited until the contract was mined into a block and then clicked "Run Tests". Got the same anomalous behavior as before.

mike80439 avatar Mar 14 '15 21:03 mike80439