Skip to content

Commit

Permalink
[fix](env)mock env.isCheckpointThread apache#24280
Browse files Browse the repository at this point in the history
ssue Number: close #xxx

ShowTableStmtTest.testNoDb and DropDbStmtTest.testNoPriv are unstable cases,error msg is:

java.lang.Exception: Unexpected exception, expected<org.apache.doris.common.AnalysisException> but was<mockit.internal.expectations.invocation.MissingInvocation>
reason is missing mock env.isCheckpointThread
  • Loading branch information
zddr authored Sep 14, 2023
1 parent 354cb39 commit 1f0844b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ public static Env fetchBlockCatalog() {
env.getCatalogMgr();
minTimes = 0;
result = ctlMgr;

env.isCheckpointThread();
minTimes = 0;
result = false;
}
};
return env;
Expand Down

0 comments on commit 1f0844b

Please sign in to comment.