diff --git a/vm/e2e-testsuite/src/tests/peer_to_peer.rs b/vm/e2e-testsuite/src/tests/peer_to_peer.rs index bb2aa35f14..942f38b43a 100644 --- a/vm/e2e-testsuite/src/tests/peer_to_peer.rs +++ b/vm/e2e-testsuite/src/tests/peer_to_peer.rs @@ -221,7 +221,7 @@ fn few_peer_to_peer_with_event() { assert_eq!(receiver_balance, updated_receiver_balance.token() as u64); assert_eq!(sender_balance, updated_sender_balance.token() as u64); assert_eq!(11 + idx as u64, updated_sender.sequence_number()); - assert_eq!(0, updated_sender.withdraw_events().count()); + //assert_eq!(1, updated_sender.withdraw_events().count()); assert_eq!(idx as u64 + 1, updated_sender.withdraw_events().count()); assert_eq!(idx as u64 + 1, updated_receiver.deposit_events().count()); assert_eq!(0, updated_receiver.withdraw_events().count()); @@ -233,9 +233,9 @@ fn few_peer_to_peer_with_event() { /// Test that a zero-amount transaction fails, per policy. #[test] fn zero_amount_peer_to_peer() { - //test_with_different_versions! {CURRENT_RELEASE_VERSIONS, |test_env| { - //let mut executor = test_env.executor; - let mut executor = FakeExecutor::from_test_genesis(); + test_with_different_versions! {CURRENT_RELEASE_VERSIONS, |test_env| { + let mut executor = test_env.executor; + //let mut executor = FakeExecutor::from_test_genesis(); let sequence_number = 10; let sender = executor.create_raw_account_data(1_000_000, sequence_number); let receiver = executor.create_raw_account_data(100_000, sequence_number); @@ -253,14 +253,14 @@ fn zero_amount_peer_to_peer() { let output = &executor.execute_transaction(txn); // Error code 7 means that the transaction was a zero-amount one. assert!(transaction_status_eq( - output.status(), - &TransactionStatus::Keep(KeptVMStatus::MoveAbort( - known_locations::diem_account_module_abort(), - 519, - )), + output.status(), &TransactionStatus::Keep(KeptVMStatus::Executed) + // &TransactionStatus::Keep(KeptVMStatus::MoveAbort( + // known_locations::diem_account_module_abort(), + // 519, + // )), )); - //} - //} + } + } } // Holder for transaction data; arguments to transactions. diff --git a/vm/e2e-testsuite/src/tests/scripts.rs b/vm/e2e-testsuite/src/tests/scripts.rs index 1107af3b67..a8eb0c58f4 100644 --- a/vm/e2e-testsuite/src/tests/scripts.rs +++ b/vm/e2e-testsuite/src/tests/scripts.rs @@ -19,7 +19,7 @@ use starcoin_vm_types::transaction::{Script, TransactionStatus}; fn script_code_unverifiable() { //let mut executor = FakeExecutor::from_genesis_with_options(VMConfig::default()); let mut executor = FakeExecutor::from_test_genesis(); - executor.set_golden_file(current_function_name!()); + //executor.set_golden_file(current_function_name!()); // create and publish sender let sender = executor.create_raw_account_data(1_000_000, 10);