No nation in the world is immune to the pressures of its national interests. China is no exception.
China looks at Pakistan as a place to invest and a nation which it can keep under its control. Besides parking its surplus capital in Pakistan, China’s One Belt and One Road (OBOR) initiative – a part of which is China-Pakistan Economic Corridor (CPEC) project – serves as a perfect opportunity to deploy additional infrastructural capacities, get employment for Chinese workers and get geostrategic leverage.

en.people.cn
Despite pouring everything, from money to manpower, China is extremely worried about one thing – Pakistan’s inability to keep terrorists under check. There are many terrorist groups in Pakistan and the country is not able to control them.

en.people.cn
China’s official Xinuha news agency quoted head of the Xinjiang government as saying that security along the China-Pakistan border would be further tightened “to prevent terrorists from entering or leaving the region illegally in 2017”.
Also See

It clearly shows that China is unhappy with Pakistan as it has failed to stop terrorists from sneaking into its restive border region of Xinjiang.
Besides, Beijing also fears that terrorists also pose a threat to its $46 billion China Pakistan Economic Corridor, which passes through Pakistan occupied Kashmir.

quora
Xinjiang Communist Party leaders fear that terrorists getting training from Pakistan and Afghanistan, will return to the province to carry out terror attacks. The statements followed a raid in which three terrorists in Xinjiang’s Hotan prefecture were killed.

dawn