According to reports, Kelsey Nicole, Megan Thee Stallion's former friend, has been granted immunity after requesting protection following her testimony. 

As a result of being granted immunity, Kelsey Nicole displaces the privilege against self-incrimination and can't have anything said in court used against her. What's more, prosecutors reportedly had no intention on prosecuting Kelsey. 

Per LA Times reporter James Queally,

“Kelsey Harris testimony at Tory Lanez trial began with her showing up with an attorney and asking for immunity. It was granted even after the DA swore they had no intent to prosecute her. [...] Kelsey spent a little less than 40 minutes on the stand, saying a lot of her memory of the party was “blurry” because of alcohol consumption. She accused Megan of lying about her and called accusations she shot Megan ‘ridiculous.'”

Source: Twitter.com