Skip to content

Commit

Permalink
WIP: add comments to explain test.
Browse files Browse the repository at this point in the history
  • Loading branch information
darnuria committed Dec 4, 2022
1 parent 1fee67e commit a4506df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/server/tests/store_file_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,14 @@ pub fn test_ttl_wilcard() {
)
.unwrap();

/// This one pass.
let rrkey = RrKey {
record_type: RecordType::A,
name: LowerName::from(Name::from_ascii("simple.test.local.").unwrap()),
};
assert_eq!(authority.records_get_mut().get(&rrkey).unwrap().ttl(), 120);

// This one related to a wildcard don't pass arround $TTL
let rrkey = RrKey {
record_type: RecordType::A,
name: LowerName::from(Name::from_ascii("x.wc.test.local.").unwrap()),
Expand Down

0 comments on commit a4506df

Please sign in to comment.