Skip to content

Commit

Permalink
Fix unittest (#682)
Browse files Browse the repository at this point in the history
* Fix unittest

* append fix
  • Loading branch information
james03160927 authored Apr 19, 2024
1 parent 64df919 commit 41cd5bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 10 additions & 1 deletion aws/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,16 @@ func TestNewQueryAcceptsValidExcludeAfterEntries(t *testing.T) {

for _, tc := range testCases {
t.Run(tc.Name, func(t *testing.T) {
_, err := NewQuery(tc.Regions, tc.ExcludeRegions, tc.ResourceTypes, tc.ExcludeResourceTypes, tc.ExcludeAfter, tc.IncludeAfter, false, nil)
_, err := NewQuery(
tc.Regions,
tc.ExcludeRegions,
tc.ResourceTypes,
tc.ExcludeResourceTypes,
tc.ExcludeAfter,
tc.IncludeAfter,
false,
nil,
false)
require.NoError(t, err)
})
}
Expand Down
5 changes: 3 additions & 2 deletions commands/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ func TestParseDuration(t *testing.T) {
}

func TestParseDurationInvalidFormat(t *testing.T) {
_, err := parseDurationParam("")
assert.Error(t, err)
value, err := parseDurationParam("")
assert.NoError(t, err)
assert.Nil(t, value)
}

func TestListResourceTypes(t *testing.T) {
Expand Down

0 comments on commit 41cd5bf

Please sign in to comment.