Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjing2 committed Nov 8, 2024
1 parent a09dfa0 commit 5e34064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void testStopFailedWithClean() {
bizModel.stop();
} catch (RuntimeException e) {
}
assertEquals(BizState.UNRESOLVED, bizModel.getBizState());
assertEquals(BizState.STOPPED, bizModel.getBizState());
}

bizModel.setBizState(BizState.ACTIVATED);
Expand Down Expand Up @@ -186,7 +186,7 @@ public void testStopSucceedWithClean() {
mockedStatic.when(ArkServiceContainerHolder::getContainer).thenReturn(arkServiceContainer);
bizModel.stop();

assertEquals(BizState.UNRESOLVED, bizModel.getBizState());
assertEquals(BizState.STOPPED, bizModel.getBizState());
}

bizModel.setBizState(BizState.ACTIVATED);
Expand All @@ -201,7 +201,7 @@ public void testStopSucceedWithClean() {
mockedStatic.when(ArkServiceContainerHolder::getContainer).thenReturn(arkServiceContainer);
bizModel.stop();

assertEquals(BizState.UNRESOLVED, bizModel.getBizState());
assertEquals(BizState.STOPPED, bizModel.getBizState());
} finally {
ArkConfigs.putStringValue(AUTO_UNINSTALL_WHEN_FAILED_ENABLE, "true");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
public enum BizState {
/**
* init but not start install yet
* not init or not start install yet
*/
UNRESOLVED("unresolved"),
/**
Expand Down

0 comments on commit 5e34064

Please sign in to comment.