We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf198b6 commit 3bc511dCopy full SHA for 3bc511d
ApprovalTests/integrations/catch/Catch2Approvals.h
@@ -48,7 +48,10 @@ struct Catch2ApprovalListener : Catch::TestEventListenerBase
48
49
virtual void sectionEnded(Catch::SectionStats const& /*sectionStats*/) override
50
{
51
- currentTest.sections.pop_back();
+ if (!currentTest.sections.empty())
52
+ {
53
+ currentTest.sections.pop_back();
54
+ }
55
}
56
};
57
//}
0 commit comments