Skip to content

Commit

Permalink
Enabling the update connnector setting in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Sicheng Song <[email protected]>
  • Loading branch information
b4sjoo committed Oct 7, 2023
1 parent 35e09d4 commit 949ebeb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public class RestMLCreateConnectorActionTests extends OpenSearchTestCase {
public void setup() {
MockitoAnnotations.openMocks(this);
when(mlFeatureEnabledSetting.isRemoteInferenceEnabled()).thenReturn(true);
when(mlFeatureEnabledSetting.isUpdateConnectorEnabled()).thenReturn(true);
restMLCreateConnectorAction = new RestMLCreateConnectorAction(mlFeatureEnabledSetting);

threadPool = new TestThreadPool(this.getClass().getSimpleName() + "ThreadPool");
Expand Down

0 comments on commit 949ebeb

Please sign in to comment.