Skip to content

Commit

Permalink
Fix typo in unit-test
Browse files Browse the repository at this point in the history
Summary: a.merge(b) means merging b into a.

Differential Revision: D70431247

fbshipit-source-id: 43e49238631d5c9d07d0fe35882fbc733f187794
  • Loading branch information
TJ Yin authored and facebook-github-bot committed Mar 1, 2025
1 parent a9a8789 commit cae91f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thrift/lib/cpp2/patch/test/DynamicPatchTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,11 +1070,11 @@ template <class P1, class P2>
void testUnmergeablePatches(P1 p1, P2 p2) {
{
DynamicPatch src(p1), dst(p2);
EXPECT_THROW(src.merge(dst), std::runtime_error);
EXPECT_THROW(dst.merge(src), std::runtime_error);
}
{
DynamicPatch src(p2), dst(p1);
EXPECT_THROW(src.merge(dst), std::runtime_error);
EXPECT_THROW(dst.merge(src), std::runtime_error);
}
}

Expand Down

0 comments on commit cae91f1

Please sign in to comment.