AFAIK, austerity in Hungary is the current program of the conservative ruling party, not an imposition by a foreign institution like the EU or the IMF. The BRI investments in Hungary are also relatively recent so it's too early to say if they've succeeded or failed, what I was referencing was the wave of loan forgiveness China has offered to poorer countries, mostly in response to the economic fallout from COVID.