Skip to content

Commit

Permalink
Always return true in isInEventBaseThread() mock
Browse files Browse the repository at this point in the history
Summary:
There is a DCHECK in https://fburl.com/code/8q034bdt so mode/opt tests
were failing

Reviewed By: lnicco

Differential Revision: D54977022

fbshipit-source-id: 90e549efebda8085e2f273e5dbf730d187c3ff12
  • Loading branch information
kvtsoy authored and facebook-github-bot committed Mar 16, 2024
1 parent 472cdfd commit ace18c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quic/common/events/test/QuicEventBaseMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ class QuicEventBaseMock : public QuicEventBase {
runInEventBaseThread,
(folly::Function<void()>),
(noexcept));
MOCK_METHOD((bool), isInEventBaseThread, (), (const));
bool isInEventBaseThread() const override {
return true;
}
MOCK_METHOD(
(void),
scheduleTimeout,
Expand Down

0 comments on commit ace18c3

Please sign in to comment.