Skip to content

Commit 8a0c388

Browse files
authored
test(grants): Use 'continue' when iterating over expected outputs (#5981)
1 parent 049109f commit 8a0c388

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/daemon/controller/handlers/authmethods/grants_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ func TestGrants_Update(t *testing.T) {
10031003
})
10041004
if expectedOutput.wantErr != nil {
10051005
require.ErrorIs(t, err, expectedOutput.wantErr)
1006-
return
1006+
continue
10071007
}
10081008
require.NoError(t, err)
10091009
handlers.TestAssertOutputFields(t, resp.Item, expectedOutput.wantOutfields)

internal/daemon/controller/handlers/managed_groups/grants_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ func TestGrants_WriteActions(t *testing.T) {
837837
got, err := s.CreateManagedGroup(fullGrantAuthCtx, item)
838838
if wantErr != nil {
839839
require.ErrorIs(t, err, wantErr)
840-
return
840+
continue
841841
}
842842
require.NoError(t, err)
843843
require.NotNil(t, got)
@@ -982,7 +982,7 @@ func TestGrants_WriteActions(t *testing.T) {
982982
got, err := s.CreateManagedGroup(fullGrantAuthCtx, item)
983983
if wantErr != nil {
984984
require.ErrorIs(t, err, wantErr)
985-
return
985+
continue
986986
}
987987
require.NoError(t, err)
988988
require.NotNil(t, got)

0 commit comments

Comments
 (0)