diff --git a/internal/transactions/transactions_test.go b/internal/transactions/transactions_test.go index ac1be36b1..e4dcd3c84 100644 --- a/internal/transactions/transactions_test.go +++ b/internal/transactions/transactions_test.go @@ -192,24 +192,24 @@ func Test_Send(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 + flags.Payer = "" + flags.Proposer = config.DefaultEmulator.ServiceAccount _, err := send([]string{""}, command.GlobalFlags{}, util.NoLogger, srv.Mock, state) assert.EqualError(t, err, "proposer/payer flags are required when signer flag is not used") - sendFlags.Signer = "" // reset + flags.Signer = "" // reset }) t.Run("Fail signer not used and proposer flag not set", func(t *testing.T) { - sendFlags.Proposer = "" - sendFlags.Payer = config.DefaultEmulator.ServiceAccount + flags.Proposer = "" + flags.Payer = config.DefaultEmulator.ServiceAccount _, err := send([]string{""}, command.GlobalFlags{}, util.NoLogger, srv.Mock, state) assert.EqualError(t, err, "proposer/payer flags are required when signer flag is not used") - sendFlags.Signer = "" // reset + flags.Signer = "" // reset }) t.Run("Fail loading transaction file", func(t *testing.T) { - sendFlags.Proposer = config.DefaultEmulator.ServiceAccount - sendFlags.Payer = config.DefaultEmulator.ServiceAccount + flags.Proposer = config.DefaultEmulator.ServiceAccount + flags.Payer = config.DefaultEmulator.ServiceAccount _, err := send([]string{"invalid"}, command.GlobalFlags{}, util.NoLogger, srv.Mock, state) assert.EqualError(t, err, "error loading transaction file: open invalid: file does not exist") })