Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo committed Oct 13, 2023
1 parent 8d4dc76 commit ff02f28
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ public void openCloseSession() {

// open session
TestSession testSession = testSession(session, stateStore);
testSession.open(new CreateSessionRequest(startJobRequest, "datasource")).assertSessionState(NOT_STARTED).assertAppId("appId").assertJobId("jobId");
testSession
.open(new CreateSessionRequest(startJobRequest, "datasource"))
.assertSessionState(NOT_STARTED)
.assertAppId("appId")
.assertJobId("jobId");
emrsClient.startJobRunCalled(1);

// close session
Expand All @@ -83,7 +87,9 @@ public void openSessionFailedConflict() {
.serverlessClient(emrsClient)
.build();
IllegalStateException exception =
assertThrows(IllegalStateException.class, () -> duplicateSession.open(new CreateSessionRequest(startJobRequest, "datasource")));
assertThrows(
IllegalStateException.class,
() -> duplicateSession.open(new CreateSessionRequest(startJobRequest, "datasource")));
assertEquals("session already exist. sessionId=duplicate-session-id", exception.getMessage());
}

Expand Down

0 comments on commit ff02f28

Please sign in to comment.