How does china get along with North Korea?

During the Korean War, North Korea and China were allies, but currently they have problems with each other.