Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Feb 9, 2021
1 parent 2d0982b commit 56ed747
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/neo.UnitTests/SmartContract/UT_InteropService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private static void AssertNotification(StackItem stackItem, UInt160 scriptHash,
[TestMethod]
public void TestExecutionEngine_GetScriptContainer()
{
GetEngine(true).GetScriptContainer().Should().BeOfType<Transaction>();
GetEngine(true).GetScriptContainer().Should().BeOfType<StackItem>();
}

[TestMethod]
Expand Down
5 changes: 2 additions & 3 deletions tests/neo.UnitTests/SmartContract/UT_Syscalls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ public void System_ExecutionEngine_GetScriptContainer()
var engine = ApplicationEngine.Create(TriggerType.Application, null, snapshot);
engine.LoadScript(script.ToArray());

Assert.AreEqual(engine.Execute(), VMState.HALT);
Assert.AreEqual(1, engine.ResultStack.Count);
Assert.IsTrue(engine.ResultStack.Peek().IsNull);
Assert.AreEqual(engine.Execute(), VMState.FAULT);
Assert.AreEqual(0, engine.ResultStack.Count);

// With tx

Expand Down

0 comments on commit 56ed747

Please sign in to comment.