From b0e215d0244cba5b0a23d1f9b221d697cbef9ea1 Mon Sep 17 00:00:00 2001 From: Deniz Mert Edincik Date: Tue, 24 Oct 2023 23:24:30 +0200 Subject: [PATCH] tests --- internal/transactions/transactions_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/transactions/transactions_test.go b/internal/transactions/transactions_test.go index cb459f8ae..5c0660bcb 100644 --- a/internal/transactions/transactions_test.go +++ b/internal/transactions/transactions_test.go @@ -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) assert.EqualError(t, err, "proposer/payer flags are required when signer flag is not used") sendFlags.Signer = "" // reset + }) + 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) assert.EqualError(t, err, "proposer/payer flags are required when signer flag is not used") sendFlags.Signer = "" // reset - }) t.Run("Fail loading transaction file", func(t *testing.T) {