Skip to content

Commit

Permalink
fix sproc test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-bli committed May 15, 2024
1 parent 50d03e3 commit 02bf9ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,12 @@ public void sessionBuilderConfigs() {
}
assert hasError;
}

@Test
public void appName() {
String appName = "my-app";
String expectedAppName = String.format("APPNAME=%s", appName);
Session session = Session.builder().configFile(defaultProfile).appName(appName).create();
assert (expectedAppName.equals(session.getQueryTag().get()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,6 @@ public void getOrCreate() {
assert (actualSessionInfo.equals(expectedSessionInfo));
}

@Test
public void appName() {
String appName = "my-app";
String expectedAppName = String.format("APPNAME=%s", appName);
Session session = Session.builder().configFile(defaultProfile).appName(appName).create();
assert (expectedAppName.equals(session.getQueryTag().get()));
}

@Test
public void getSessionInfo() {
String result = getSession().getSessionInfo();
Expand Down

0 comments on commit 02bf9ca

Please sign in to comment.