Not only that, but Russia-Chinese relations have not always been smooth. They have had dustups over one of the longest land borders in the world before.
With this
https://en.wikipedia.org/wiki/1991_Sino-Soviet_Border_Agreem...
I think border disagreement already solved. Besides, I believe they realize the contention between them only strengthens NATO over them.
I think the possible conflict nowadays is influence over central Asia. However, they might share the influence with China got the economic influence and Russia got political influence.
It is interesting to predict this balance post-Putin though.