Skip to content

Commit

Permalink
Apply DRY for listIndexes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-ilijic committed Feb 10, 2025
1 parent 18facd2 commit 7a9f587
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 192 deletions.
2 changes: 1 addition & 1 deletion pbm/archive/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (bcp *backupImpl) listDBNamespaces(ctx context.Context, db string) ([]*Name
return rv, errors.Wrap(cur.Err(), "cursor")
}

// listIndexes fetch indexes definition for the specified namespace.
// listIndexes fetches index definitions for the specified namespace.
// It returns dynamic bson.D index representation which is filtered by allowed index
// specification keys.
func (bcp *backupImpl) listIndexes(ctx context.Context, db, coll string) ([]IndexSpec, error) {
Expand Down
Loading

0 comments on commit 7a9f587

Please sign in to comment.