From 6513f31960980a7d585f461fd05103406edf454e Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 11 Apr 2016 16:00:20 +0200 Subject: Make unit tests work again and move rrset files. --- src/dnssecport.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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))]. -- cgit v1.1