LOS ANGELES (AP) — Dr. Dre won’t be behind the microphone at a federal courthouse after all — the rapper settled a lawsuit over damages from unauthorized online sales of his album “The Chronic” a day before trial.

Attorneys for the rap superstar, whose real name is Andre Young, filed a notice of settlement in a Los Angeles federal court late Monday afternoon. He had been expected to testify during the weeklong trial, which would have decided whether Young was entitled to 100 percent of the profits from online sales of the rap album, which also helped launch the career of Snoop Dogg.