Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Jun 1, 2024
1 parent ea05807 commit a3fb390
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion/core/src/datasource/file_format/object_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,8 @@ mod tests {
.await
.unwrap_err();

assert_eq!(err.to_string(), "Invalid or Unsupported Configuration: Invalid endpoint: http://endpoint33. HTTP is not allowed for S3 endpoints. To allow HTTP, set 'aws.allow_http' to true");
// There are other backstraces in the error message, so we just check for containing the message
assert_eq!(err.to_string().contains("Invalid or Unsupported Configuration: Invalid endpoint: http://endpoint33. HTTP is not allowed for S3 endpoints. To allow HTTP, set 'aws.allow_http' to true"), true);
} else {
return plan_err!("LogicalPlan is not a CreateExternalTable");
}
Expand Down

0 comments on commit a3fb390

Please sign in to comment.