summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dnssecport.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dnssecport.erl b/src/dnssecport.erl
index acdc5c4..e9c3345 100644
--- a/src/dnssecport.erl
+++ b/src/dnssecport.erl
@@ -110,8 +110,8 @@ stop_port(State) ->
%%%%%%%%%%%%%%%%%%%%
%% Unit tests.
-define(TA_FILE, "test/testdata/dnssec/trust_anchors").
--define(REQ1_FILE, "test/testdata/dnssec/req-basic").
--define(REQ2_FILE, "test/testdata/dnssec/req-lowttl").
+-define(REQ1_FILE, "test/testdata/dnssec/testrrsets/req-basic").
+-define(REQ2_FILE, "test/testdata/dnssec/testrrsets/req-lowttl").
start_test_port() ->
create_port("priv/dnssecport", [?TA_FILE]).
@@ -122,10 +122,10 @@ stop_test_port(Port) ->
read_submission_from_file(Filename) ->
{ok, Data} = file:read_file(Filename),
- dns:decode_rrset(Data).
+ Data.
read_dec_enc_test_() ->
- DecodedRRset = read_submission_from_file(?REQ1_FILE),
+ DecodedRRset = dns:decode_rrset(read_submission_from_file(?REQ1_FILE)),
{ok, FileContent} = file:read_file(?REQ1_FILE),
[?_assertEqual(FileContent, dns:encode_rrset(DecodedRRset))].