Skip to content

Commit

Permalink
fix: little error in executor_test
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Nov 17, 2022
1 parent 7cad0f7 commit e314442
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pkg/ledger/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,27 +416,23 @@ func TestScriptReferenceConflict(t *testing.T) {
}(l, context.Background())

_, err := l.Execute(context.Background(), core.Script{
ScriptCore: core.ScriptCore{
Plain: `
Plain: `
send [USD/2 99] (
source=@world
destination=@user:001
)`,
Vars: map[string]json.RawMessage{},
},
Vars: map[string]json.RawMessage{},
Reference: "tx_ref",
})
require.NoError(t, err)

_, err = l.Execute(context.Background(), core.Script{
ScriptCore: core.ScriptCore{
Plain: `
Plain: `
send [USD/2 99] (
source=@unexists
destination=@user:001
)`,
Vars: map[string]json.RawMessage{},
},
Vars: map[string]json.RawMessage{},
Reference: "tx_ref",
})
require.Error(t, err)
Expand Down

0 comments on commit e314442

Please sign in to comment.