Skip to content

Conversation

@chobits
Copy link
Member

@chobits chobits commented May 28, 2023

  1. resolver_file.t: reduced dependency on DNS server listening.
    • In new github workflow environment, we cannot bind 53 port sometimes. In order to make the case pass, we should remove the dependency on 53 port listening, using debug log to check the logic.
  2. proxy_connect_*.t: refactored the logic of the DNS daemon test cases to follow the style of the nginx-tests repository.
    • When attempting to bind UDP ports fails, retry other random ports

@chobits chobits requested a review from wangfakang May 28, 2023 10:24
@chobits chobits requested a review from lhanjian May 29, 2023 02:37
pack 'n3N nC4', 0xc00c, A, IN, $ttl, eval "scalar $code", eval($code);
}

sub dns_daemon {
Copy link
Member Author

@chobits chobits May 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coding style from nginx-tests/http_resolver.t

@chobits chobits changed the title resolver_file.t: reduced dependency on DNS server listening Fixed some test cases that failed to start the DNS daemon May 29, 2023
@lhanjian
Copy link
Collaborator

LGTM

@chobits chobits merged commit c98cf98 into alibaba:master May 29, 2023
@chobits chobits added this to the 2.4.1 milestone Jun 9, 2023
chobits added a commit to chobits/tengine that referenced this pull request Aug 4, 2023
1. resolver_file.t: reduced dependency on DNS server listening. 
   * In new github workflow environment, we cannot bind 53 port sometimes. In order to make the case pass, we should remove the dependency on 53 port listening, using debug log to check the logic.
2. proxy_connect_*.t: refactored the logic of the DNS daemon test cases to follow the style of the nginx-tests repository.
   * When attempting to bind UDP ports fails, retry other random ports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants