Skip to content

Commit bbbabf7

Browse files
committed
Revert "Reimplement with toml as test format, as module tests only with "toml" feature enabled"
This reverts commit de64ae9.
1 parent ffba331 commit bbbabf7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/errors.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ fn error_with_path() {
136136

137137
#[test]
138138
fn test_error_root_not_table() {
139-
match Config::builder().add_source(File::from_str("false", FileFormat::Toml)).build() {
139+
match Config::builder()
140+
.add_source(File::from_str(r#"false"#, FileFormat::Json5))
141+
.build()
142+
{
140143
Ok(_) => panic!("Should not merge if root is not a table"),
141144
Err(e) => match e {
142145
ConfigError::FileParse { cause, .. } => assert_eq!(

0 commit comments

Comments
 (0)