Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhou-db committed Oct 9, 2024
1 parent a7ee4ce commit d5ef283
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@ class DeltaSharingRestClient(
// Only show the last 100 lines in the error to keep it contained.
val responseToShow = lines.drop(lines.size - 100).mkString("\n")
throw new UnexpectedHttpStatus(
s"HTTP request failed with status$getDsQueryIdForLogging: $status." +
s" $additionalErrorInfo $responseToShow",
s"HTTP request failed with status: $status" +
Seq(getDsQueryIdForLogging, additionalErrorInfo, responseToShow).mkString(" "),
statusCode)
}
val capabilities = Option(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,8 @@ class DeltaSharingRestClientSuite extends DeltaSharingIntegrationTest {
false
)
}.getMessage
assert(errorMessage.contains("""400 Bad Request {"errorCode":"RESOURCE_DOES_NOT_EXIST""""))
assert(errorMessage.contains("""400 Bad Request for query"""))
assert(errorMessage.contains("""{"errorCode":"RESOURCE_DOES_NOT_EXIST""""))
assert(errorMessage.contains("table files missing"))
} finally {
client.close()
Expand Down

0 comments on commit d5ef283

Please sign in to comment.