Skip to content

Commit

Permalink
feat: add labels flag as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
femrtnz committed Oct 8, 2024
1 parent 6803186 commit 3167229
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/printer/csv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ func TestCSVPrinterPrint(t *testing.T) {
commonPrinter: &commonPrinter{tmpFile},
}

results := getTestResult(map[string]interface{}{"key2": "value2"})

labelsFlag := false
ctx := context.WithValue(context.Background(), ctxKey.LEBELS_CTX_KEY, &labelsFlag)

results := getTestResult(map[string]interface{}{"key2": "value2"})

if err := tp.Print(results, ctx); err != nil {
t.Fatalf("unexpected error: %v", err)
}
Expand Down
1 change: 0 additions & 1 deletion pkg/printer/text_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func Test_textPrinter_Print(t *testing.T) {
}

results := getTestResult(map[string]interface{}{"key2": "value2"})

labelsFlag := false
ctx := context.WithValue(context.Background(), ctxKey.LEBELS_CTX_KEY, &labelsFlag)

Expand Down

0 comments on commit 3167229

Please sign in to comment.