Skip to content

Commit d8b0134

Browse files
update: fix error handling assertion in DecisionServiceTest to correctly verify error state
1 parent 5796cb7 commit d8b0134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-api/src/test/java/com/optimizely/ab/bucketing/DecisionServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ public void getVariationCmabExperimentServiceError() {
15541554
assertNull(result.getResult());
15551555

15561556
// Verify that the error is not propagated (no exception thrown)
1557-
assertFalse(result.isError());
1557+
assertTrue(result.isError());
15581558

15591559
// Assert that CmabService.getDecision was called exactly once
15601560
verify(mockCmabService, times(1)).getDecision(any(), any(), any(), any());

0 commit comments

Comments
 (0)