diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-08 00:20:25 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-10 21:24:56 +0800 |
commit | 4cf44f1b41fe021653a6f45c72c19253dd352459 (patch) | |
tree | e558d5f8f794a69567926afc933ddf807909185e | |
parent | 3128ec2ca5d30aaca78aae457642214f3f52e31f (diff) | |
download | dexon-solidity-4cf44f1b41fe021653a6f45c72c19253dd352459.tar.gz dexon-solidity-4cf44f1b41fe021653a6f45c72c19253dd352459.tar.zst dexon-solidity-4cf44f1b41fe021653a6f45c72c19253dd352459.zip |
Do not use modifyTimestamp where not needed
-rw-r--r-- | test/libsolidity/SolidityEndToEndTest.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp index 4924b55d..3c2e939c 100644 --- a/test/libsolidity/SolidityEndToEndTest.cpp +++ b/test/libsolidity/SolidityEndToEndTest.cpp @@ -1482,9 +1482,12 @@ BOOST_AUTO_TEST_CASE(now) } } )"; - m_rpc.test_modifyTimestamp(0x776347e2); compileAndRun(sourceCode); - BOOST_CHECK(callContractFunction("someInfo()") == encodeArgs(true, 0x776347e3)); + u256 startBlock = m_blockNumber; + auto ret = callContractFunction("someInfo()"); + u256 endBlock = m_blockNumber; + BOOST_CHECK(startBlock != endBlock); + BOOST_CHECK(ret == encodeArgs(true, blockTimestamp(endBlock))); } BOOST_AUTO_TEST_CASE(type_conversions_cleanup) |