Skip to content

Commit

Permalink
Add ErrorMessageSuite test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-evandenberg committed Nov 4, 2024
1 parent 6089715 commit 3a53743
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/scala/com/snowflake/snowpark/ErrorMessageSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -886,4 +886,11 @@ class ErrorMessageSuite extends FunSuite {
ex.message.startsWith(
"Error Code: 0428, Error message: Failed to serialize the query tag into a JSON string."))
}

test("BINDING_PARAMETER_MULTI_STATEMENT_NOT_SUPPORTED") {
val ex = ErrorMessage.BINDING_PARAMETER_MULTI_STATEMENT_NOT_SUPPORTED()
assert(ex.telemetryMessage.equals(ErrorMessage.getMessage("0429")))
assert(ex.message.startsWith(
"Error Code: 0429, Error message: Binding parameter not supported on multi-statement query."))
}
}

0 comments on commit 3a53743

Please sign in to comment.