President Trump on Wednesday slammed the increasingly profitable trade relationship between China and North Korea, two days after North Korea conducted a successful test-launch of an intercontinental ballistic missile.

"Trade between China and North Korea grew almost 40% in the first quarter. So much for China working with us - but we had to give it a try!" Trump tweeted, minutes before he was scheduled to depart the White House for the G-20 summit in Europe.

Trade between China and North Korea grew almost 40% in the first quarter. So much for China working with us - but we had to give it a try! — Donald J. Trump (@realDonaldTrump) July 5, 2017

Trump has implored Chinese President Xi Jinping to pressure North Korean leader Kim Jong Un with sanctions to get the missile tests to stop.

Trump also criticized the poor international trade agreements his predecessors have signed.

"The United States made some of the worst Trade Deals in world history.Why should we continue these deals with countries that do not help us?" Trump tweeted.

The United States made some of the worst Trade Deals in world history.Why should we continue these deals with countries that do not help us? — Donald J. Trump (@realDonaldTrump) July 5, 2017

Trump is scheduled to visit Warsaw, Poland, prior to attending the international summit in Hamburg, Germany.

"The visit will reaffirm America's steadfast commitment to one of our closest European allies and emphasize the Administration's priority of strengthening NATO's collective defense," the White House said in a statement. "The leaders will discuss a range of bilateral and regional issues, deepening an alliance based on shared values and common interests."

Trump is also expected to deliver a "major" speech while in Poland and attend the Three Seas Initiative Summit.

The trip will be the Trump's second as president, following his May excursion to the Middle East and Europe.