Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Oct 23, 2024
1 parent 226b6e8 commit 49c9fd4
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions test/erldns_storage_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,10 @@ load_zones_with_existing_file_test() ->
erldns_storage:create(zone_records_typed),
Filename = filename:join(tmp_dir(), "zones.json"),

ok = file:write_file(Filename, """
[{
"name": "example.com",
"records": [
{
"name": "example.com",
"type": "SOA",
"data": {
"mname": "ns1.example.com",
"rname": "ahu.example.com",
"serial": 2000081501,
"refresh": 28800,
"retry": 7200,
"expire": 604800,
"minimum": 86400
},
"ttl": 100000
}
]
}]
"""),
ok = file:write_file(
Filename,
<<"[{\"name\": \"example.com\", \"records\": [{\"name\": \"example.com\", \"type\": \"SOA\", \"data\": {\"mname\": \"ns1.example.com\", \"rname\": \"ahu.example.com\", \"serial\": 2000081501, \"refresh\": 28800, \"retry\": 7200, \"expire\": 604800, \"minimum\": 86400}, \"ttl\": 100000}]}]">>
),

?assertMatch({ok, 1}, ?TEST_MODULE:load_zones(Filename)),
gen_server:stop(Pid).
Expand Down

0 comments on commit 49c9fd4

Please sign in to comment.