Skip to content

Commit a3fb390

Browse files
committed
fix test
1 parent ea05807 commit a3fb390

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datafusion/core/src/datasource/file_format/object_storage.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,8 @@ mod tests {
591591
.await
592592
.unwrap_err();
593593

594-
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");
594+
// There are other backstraces in the error message, so we just check for containing the message
595+
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);
595596
} else {
596597
return plan_err!("LogicalPlan is not a CreateExternalTable");
597598
}

0 commit comments

Comments
 (0)