test(grants): Use 'continue' when iterating over expected outputs (#5981)
This commit is contained in:
1 parent
049109fb10
commit
8a0c388a96
2 files changed
+3
-3
No files matched your search
@@ -1003,7 +1003,7 @@ func TestGrants_Update(t *testing.T) {
|
||||
})
|
||||
if expectedOutput.wantErr != nil {
|
||||
require.ErrorIs(t, err, expectedOutput.wantErr)
|
||||
return
|
||||
continue
|
||||
}
|
||||
require.NoError(t, err)
|
||||
handlers.TestAssertOutputFields(t, resp.Item, expectedOutput.wantOutfields)
|
||||
|
||||
@@ -837,7 +837,7 @@ func TestGrants_WriteActions(t *testing.T) {
|
||||
got, err := s.CreateManagedGroup(fullGrantAuthCtx, item)
|
||||
if wantErr != nil {
|
||||
require.ErrorIs(t, err, wantErr)
|
||||
return
|
||||
continue
|
||||
}
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, got)
|
||||
@@ -982,7 +982,7 @@ func TestGrants_WriteActions(t *testing.T) {
|
||||
got, err := s.CreateManagedGroup(fullGrantAuthCtx, item)
|
||||
if wantErr != nil {
|
||||
require.ErrorIs(t, err, wantErr)
|
||||
return
|
||||
continue
|
||||
}
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, got)
|
||||
|
||||
Reference in new issue
Block a user