Skip to content

Commit 4308eff

Browse files
authored
Merge pull request #9 from dbulahov/main051225
fix tests
2 parents fc1afb7 + c7f46b9 commit 4308eff

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mondrian/src/test/java/mondrian/olap/fun/CrossJoinTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ void testCrossJoinIterCalc_IterationCancellationOnForward(Context<?> foodMartCon
146146
// Test execution to track cancellation/timeout calls
147147
ExecutionImpl execution =
148148
spy( new ExecutionImpl( genders.getQuery().getStatement(), Optional.empty() ) );
149+
execution.asContext().setExecution(execution);
149150
// check no execution of checkCancelOrTimeout has been yet
150151
verify( execution, times( 0 ) ).checkCancelOrTimeout();
151152
Integer crossJoinIterCalc =

mondrian/src/test/java/mondrian/rolap/CancellationTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ void testMutableCrossJoinCancellation(Context<?> context) throws OlapRuntimeExce
111111

112112
ExecutionImpl execution =
113113
spy(new ExecutionImpl(genders.getQuery().getStatement(), Optional.empty()));
114+
execution.asContext().setExecution(execution);
114115
TupleList mutableCrossJoinResult =
115116
mutableCrossJoin(productMembers, genderMembers, execution);
116117

0 commit comments

Comments
 (0)