A law firm’s dispute with the landlord for its Midtown Manhattan office that has throughout eight months of litigation generated millions of dollars in attorney fees and dredged up hundreds of thousands of pages of documents appears to have tested a judge’s patience.

This month, Manhattan Supreme Court Justice Barry Ostrager awarded more than $700,000 in fees to attorneys for plaintiffs’ class-action firm Wolf Haldenstein Adler Freeman & Herz, which has sparred in court with its landlord over allegedly shoddy renovations to its space at 270 Madison Avenue, the building that the firm has called home since 1923.