We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug UT fail randomly, I think that it's because we Commit the snapshot in order to validate some tx, balance etc.
Commit
[TestMethod] public void TestValidTransaction() { using var snapshot = TestBlockchain.TheNeoSystem.GetSnapshot(); var walletA = TestUtils.GenerateTestWallet("123"); var acc = walletA.CreateAccount(); // Fake balance var key = new KeyBuilder(NativeContract.GAS.Id, 20).Add(acc.ScriptHash); var entry = snapshot.GetAndChange(key, () => new StorageItem(new AccountState())); entry.GetInteroperable<AccountState>().Balance = 100_000_000 * NativeContract.GAS.Factor; snapshot.Commit(); // Make transaction var tx = CreateValidTx(snapshot, walletA, acc.ScriptHash, 0); senderProbe.Send(system.Blockchain, tx); senderProbe.ExpectMsg<Blockchain.RelayResult>(p => p.Result == VerifyResult.Succeed); senderProbe.Send(system.Blockchain, tx); senderProbe.ExpectMsg<Blockchain.RelayResult>(p => p.Result == VerifyResult.AlreadyInPool); }
To Reproduce Steps to reproduce the behavior:
Expected behavior UT's should work .
Screenshots
The text was updated successfully, but these errors were encountered:
we need mock snapshot
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
UT fail randomly, I think that it's because we
Commit
the snapshot in order to validate some tx, balance etc.To Reproduce
Steps to reproduce the behavior:
Expected behavior
UT's should work .
Screenshots
The text was updated successfully, but these errors were encountered: