Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bluesign committed Oct 24, 2023
1 parent 60cbcd6 commit b0e215d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/transactions/transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,19 +189,20 @@ func Test_Send(t *testing.T) {
sendFlags.Signer = "" // reset
})

t.Run("Fail signer not used and payer and proposer flags not set", func(t *testing.T) {
t.Run("Fail signer not used and payer flag not set", func(t *testing.T) {
sendFlags.Payer = ""
sendFlags.Proposer = config.DefaultEmulator.ServiceAccount
_, err := send([]string{""}, command.GlobalFlags{}, util.NoLogger, srv.Mock, state)

Check failure on line 195 in internal/transactions/transactions_test.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

undefined: sendFlags
assert.EqualError(t, err, "proposer/payer flags are required when signer flag is not used")

Check failure on line 196 in internal/transactions/transactions_test.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

undefined: sendFlags
sendFlags.Signer = "" // reset
})

Check failure on line 199 in internal/transactions/transactions_test.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

undefined: sendFlags
t.Run("Fail signer not used and proposer flag not set", func(t *testing.T) {
sendFlags.Proposer = ""
sendFlags.Payer = config.DefaultEmulator.ServiceAccount
_, err = send([]string{""}, command.GlobalFlags{}, util.NoLogger, srv.Mock, state)
_, err := send([]string{""}, command.GlobalFlags{}, util.NoLogger, srv.Mock, state)

Check failure on line 203 in internal/transactions/transactions_test.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

undefined: sendFlags
assert.EqualError(t, err, "proposer/payer flags are required when signer flag is not used")

Check failure on line 204 in internal/transactions/transactions_test.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

undefined: sendFlags
sendFlags.Signer = "" // reset

})

Check failure on line 207 in internal/transactions/transactions_test.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

undefined: sendFlags
t.Run("Fail loading transaction file", func(t *testing.T) {
Expand Down

0 comments on commit b0e215d

Please sign in to comment.