Not sure what you mean. I gave an example of someone who was being racially discriminated at her workplace for no good reason.
In your example, she was subjected to racism, but she wasn't discriminated against.
In this context, discrimination implies legal or policy-based backing for disparate treatment on the basis of race or ethnicity. And given that the university took the teacher's side, then she was not subject to discrimination. Her students treated her in a fashion that could be described as racist, sure. Racism implies that people are treated differently in interpersonal ways.
Both can happen at the same time, but they're not the same things.
Ferinstance... an interviewer might treat a male applicant poorly, be rude to them, and discount their skills when applying for a job - which would be a demonstration of sexism. And the company might have a policy of only hiring female humans for the posted position - which would be discrimination on the basis of sex. And those two things could occur simultaneously.
If the posted position happens to be for a stripper in a club that caters to a heterosexual audience, such discrimination might even be reasonable and appropriate.