Skip to content

Commit

Permalink
fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BarunKGP committed Feb 20, 2024
1 parent ddcdb57 commit b0163b0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions component/otelcol/exporter/debug/debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func Test(t *testing.T) {

{
testName: "validConfig",
args:`
args: `
verbosity = "detailed"
sampling_initial = 5
sampling_thereafter = 20
Expand Down Expand Up @@ -63,15 +63,15 @@ func Test(t *testing.T) {
var args debug.Arguments
err := river.Unmarshal([]byte(tc.args), &args)
require.NoError(t, err)

actualPtr, err := args.Convert()
if tc.errorMsg != "" {
require.ErrorContains(t, err, tc.errorMsg)
return
}
}

require.NoError(t, err)

actual := actualPtr.(*debugexporter.Config)
fmt.Printf("Passed conversion")

Expand All @@ -80,5 +80,4 @@ func Test(t *testing.T) {
require.Equal(t, tc.expectedReturn, *actual)
})
}

}

0 comments on commit b0163b0

Please sign in to comment.