Thomas Shea-USA TODAY Sports

In desperate need of a strong pitching performance to halt the team's slide, the Houston Astros turned to ace left-hander Framber Valdez on Tuesday. He succeeded.

Now the Astros will give the ball to Cristian Javier on Wednesday afternoon as they look to win the rubber game of a three-game series against the visiting New York Mets.

Valdez took a shutout into the eighth inning on Tuesday as the Astros beat the Mets 4-2 to snap a five-game losing streak.

Before the win, Houston had lost 10 of 13 since climbing a season-high 12 games over .500.

"It's been a while trying to get to that 40 (wins). We've been knocking on that door for five games," Astros manager Dusty Baker said. "I hope that we never go through a streak like that the rest of the year. It seemed like we hadn't won in a month."

Javier (7-1, 2.90 ERA) enters his Wednesday start in good form, having gone 5-0 with a 2.49 ERA in his past eight starts.

The right-hander worked six scoreless innings against the Washington Nationals on Thursday, allowing five hits and no walks while not factoring into the decision of a 4-1 loss.

Javier will be making his first career appearance against the Mets. He is 3-2 with a 3.52 ERA over 19 career interleague appearances (12 starts).

Right-hander Tylor Megill (6-4, 4.83 ERA) has the starting assignment for the Mets. He was the pitcher of record in his start on Friday, allowing one run on four hits and tying season highs with seven strikeouts and six innings in a 6-1 win over the St. Louis Cardinals. Megill had been winless over his previous four starts, going 0-2 with an 8.64 ERA.

Megill has yet to oppose the Astros. In six career interleague outings (five starts), he is 3-0 with a 2.25 ERA, including a 1-0 mark and a 2.38 ERA in two interleague starts this season.

It was an intriguing pitching matchup on Tuesday with current Astros ace Valdez going up against New York's Justin Verlander, Houston's former ace. When Verlander departed Houston for the Mets as a free agent in the offseason, it opened the door for Valdez to take his place atop the rotation.

The Houston bullpen fumbled what would have been the seventh win for Valdez last week after he allowed just one run over seven sparkling innings against the Nationals.

On Tuesday, in the penultimate game of the Astros' season-high-tying, nine-game homestand, he allowed two runs on four hits and one walk while recording nine strikeouts in the eighth inning. It was an effort befitting an ace, one the reeling Astros sorely needed, as New York was shut out on one hit entering the eighth.

Verlander was good on Tuesday, just not as sharp as Valdez. He gave up four runs on eight hits with five strikeouts and no walks over seven innings. The fourth run, in his final frame, stung.

"A bit frustrated," Verlander said. "Seems like a lot of the balls that were put in play found a hole. Some of the hard-hit ones early in the night, they found guys. The last (run) really, really hurt."

More must-reads:

TODAY'S BEST
Celtics respond with impressive road win vs. Cavaliers in Game 3
Hurricanes' power play finally comes through with season on the line
Watch: An outstanding first half by Donovan Mitchell keeps the Cavaliers alive in Game 3 vs. Celtics
Mavericks come from behind to down Thunder, take 2-1 series lead
Tigers lose veteran starting pitcher to injury
Justin Allgaier dominates at Darlington for first win of 2024
Watch: Minor league baseball game interrupted by turtle delay
Rangers ace continues to be plagued by nerve irritation in thumb
Cowboys hint at timeline for extension talks with offensive star
Steelers first-round pick has already 'apologized' to new locker mate
Former Packers WR makes bold prediction about Jordan Love
Watch: Paul Skenes wastes no time showing why Pirates drafted him No. 1 overall
Broncos release former Super Bowl champion WR
Nationals had 'substantive discussions' with former top prospect about extension
Patriots make unsurprising decision on top executive
Cowboys release veteran WR
Longtime Steelers DT Cameron Heyward hints contract extension is coming
'Great mind': One-time NBA champion endorses candidate for Lakers HC job
Jrue Holiday jokes about beating departing Celtics assistant who just landed Hornets job
Orioles manager explains Craig Kimbrel's new role

Want more Astros news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.