Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea committed Oct 26, 2023
1 parent 8c84712 commit 0f83702
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void tearDown() {
public void getTreatmentsByFlagSetDestroyedDoesNotUseEvaluator() {
mTreatmentManager.getTreatmentsByFlagSet("set_1", null, true);

verify(mSplitsStorage).getNamesByFlagSets(any());
verify(mSplitsStorage, times(0)).getNamesByFlagSets(any());
verify(mEvaluator, times(0)).getTreatment(any(), any(), any(), anyMap());
}

Expand Down Expand Up @@ -186,7 +186,7 @@ public void getTreatmentsByFlagSetRecordsTelemetry() {
public void getTreatmentsByFlagSetsDestroyedDoesNotUseEvaluator() {
mTreatmentManager.getTreatmentsByFlagSets(Collections.singletonList("set_1"), null, true);

verify(mSplitsStorage).getNamesByFlagSets(any());
verify(mSplitsStorage, times(0)).getNamesByFlagSets(any());
verify(mEvaluator, times(0)).getTreatment(any(), any(), any(), anyMap());
}

Expand Down Expand Up @@ -361,7 +361,7 @@ public void getTreatmentsWithConfigByFlagSetRecordsTelemetry() {
public void getTreatmentsWithConfigByFlagSetsDestroyedDoesNotUseEvaluator() {
mTreatmentManager.getTreatmentsWithConfigByFlagSets(Collections.singletonList("set_1"), null, true);

verify(mSplitsStorage).getNamesByFlagSets(any());
verify(mSplitsStorage, times(0)).getNamesByFlagSets(any());
verify(mEvaluator, times(0)).getTreatment(any(), any(), any(), anyMap());
}

Expand Down

0 comments on commit 0f83702

Please sign in to comment.