Skip to content

Commit

Permalink
Increase test coverage in LookupTest
Browse files Browse the repository at this point in the history
  • Loading branch information
nresare committed Feb 5, 2021
1 parent 2d69532 commit f9696c1
Show file tree
Hide file tree
Showing 3 changed files with 333 additions and 66 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/xbill/DNS/Lookup.java
Expand Up @@ -606,6 +606,7 @@ public Record[] run() {
}

for (Name value : searchPath) {

resolve(name, value);
if (done) {
return answers;
Expand Down
Expand Up @@ -17,11 +17,11 @@ public interface ResolverConfigProvider {

/**
* Gets the threshold for the number of dots which must appear in a name before it is considered
* absolute. The default is {@code -1}, meaning this provider does not supported reading the ndots
* configuration.
* absolute. If the interface implementation does not override this, the default implementation
* returns 1.
*/
default int ndots() {
return -1;
return 1;
}

/** Determines if this provider is enabled. */
Expand Down

0 comments on commit f9696c1

Please sign in to comment.