Skip to content

Commit

Permalink
Fix test result return logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Dec 8, 2024
1 parent ef89dd8 commit 5d24620
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions enginerequests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ func (e *Engine) executeQuerySync(ctx context.Context, q *sdp.Query) ([]*sdp.Ite
errs := make([]*sdp.QueryError, 0)

err := e.ExecuteQuery(ctx, q, itemsChan, errsChan)
if err != nil {
return nil, nil, err
}

for i := range itemsChan {
items = append(items, i)
Expand All @@ -36,7 +33,7 @@ func (e *Engine) executeQuerySync(ctx context.Context, q *sdp.Query) ([]*sdp.Ite
errs = append(errs, e)
}

return items, errs, nil
return items, errs, err
}

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

0 comments on commit 5d24620

Please sign in to comment.