Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrytfleung committed Jan 18, 2024
1 parent 70d5559 commit fc4f162
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extension/solarwindsapmsettingsextension/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ func TestValidate(t *testing.T) {
},
err: nil,
},
{
name: "empty_interval",
cfg: &Config{
Endpoint: "host:12345",
Key: "token:name",
Interval: "",
},
err: errors.New("interval has to be a duration string. Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\""),
},
}
for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
Expand Down

0 comments on commit fc4f162

Please sign in to comment.