Skip to content

Commit ec0972e

Browse files
committed
fix(kms): remove hardcoded async in outputResult tests
1 parent c6715b5 commit ec0972e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/cmd/kms/version/disable/disable_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ func TestOutputResult(t *testing.T) {
282282
description string
283283
wantErr bool
284284
outputFormat string
285+
async bool
285286
resp *kms.Version
286287
}{
287288
{
@@ -312,7 +313,7 @@ func TestOutputResult(t *testing.T) {
312313
p.Cmd = NewCmd(&types.CmdParams{Printer: p})
313314
for _, tt := range tests {
314315
t.Run(tt.description, func(t *testing.T) {
315-
err := outputResult(p, tt.outputFormat, false, tt.resp)
316+
err := outputResult(p, tt.outputFormat, tt.async, tt.resp)
316317
if (err != nil) != tt.wantErr {
317318
t.Errorf("outputResult() error = %v, wantErr %v", err, tt.wantErr)
318319
}

internal/cmd/kms/version/enable/enable_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ func TestOutputResult(t *testing.T) {
282282
description string
283283
wantErr bool
284284
outputFormat string
285+
async bool
285286
resp *kms.Version
286287
}{
287288
{
@@ -312,7 +313,7 @@ func TestOutputResult(t *testing.T) {
312313
p.Cmd = NewCmd(&types.CmdParams{Printer: p})
313314
for _, tt := range tests {
314315
t.Run(tt.description, func(t *testing.T) {
315-
err := outputResult(p, tt.outputFormat, false, tt.resp)
316+
err := outputResult(p, tt.outputFormat, tt.async, tt.resp)
316317
if (err != nil) != tt.wantErr {
317318
t.Errorf("outputResult() error = %v, wantErr %v", err, tt.wantErr)
318319
}

0 commit comments

Comments
 (0)