Skip to content

Commit 8cae9c8

Browse files
committed
Only opt-into tests for TOML
Has the same implementation as JSON anyway, and it makes tests run into timeouts otherwise.
1 parent 225f512 commit 8cae9c8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

examples/14_toml_template.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ void read()
103103
{
104104
"iteration_encoding": "variable_based",
105105
"json": {
106-
"mode": "template"
106+
"dataset": {"mode": "template"},
107+
"attribute": {"mode": "short"}
107108
}
108109
}
109110
)";

test/SerialIOTest.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,15 @@ TEST_CASE("dtype_test", "[serial]")
15581558
{
15591559
for (auto const &t : testedFileExtensions())
15601560
{
1561-
dtype_test(t);
1561+
if (t == "json")
1562+
{
1563+
dtype_test(t);
1564+
dtype_test(t, R"(json.mode = "template")");
1565+
}
1566+
else
1567+
{
1568+
dtype_test(t);
1569+
}
15621570
}
15631571
dtype_test("json", R"(
15641572
{

0 commit comments

Comments
 (0)