Skip to content

Commit

Permalink
Removed failure dir from ShellServerIT.importDirectoryCmdFmt (#5053)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion authored Nov 12, 2024
1 parent 4a59aa0 commit e45b3b4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2042,11 +2042,9 @@ public void importDirectoryCmdFmt() throws Exception {

File importDir = new File(rootPath, "import_" + table);
assertTrue(importDir.mkdir());
File errorsDir = new File(rootPath, "errors_" + table);
assertTrue(errorsDir.mkdir());

// expect fail - table does not exist.
ts.exec(String.format("importdirectory -t %s %s %s false", table, importDir, errorsDir), false,
ts.exec(String.format("importdirectory -t %s %s false", table, importDir), false,
"TableNotFoundException");

ts.exec(String.format("table %s", table), false, "TableNotFoundException");
Expand All @@ -2066,7 +2064,7 @@ public void importDirectoryCmdFmt() throws Exception {

// expect fail - original cmd without a table.
ts.exec("notable", true);
ts.exec(String.format("importdirectory %s %s false", importDir, errorsDir), false,
ts.exec(String.format("importdirectory %s false", importDir), false,
"java.lang.IllegalStateException: Not in a table context.");
}

Expand Down

0 comments on commit e45b3b4

Please sign in to comment.