mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-29 15:23:45 +00:00
WIP: debug DNS test
This commit is contained in:
parent
5c562116fc
commit
5de8f42c9c
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -39,7 +39,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
race-root-integration:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
strategy:
|
||||
fail-fast: false # don't abort the entire matrix if one element fails
|
||||
matrix:
|
||||
@ -54,7 +54,7 @@ jobs:
|
||||
- name: build test wrapper
|
||||
run: ./tool/go build -o /tmp/testwrapper ./cmd/testwrapper
|
||||
- name: integration tests as root
|
||||
run: PATH=$PWD/tool:$PATH /tmp/testwrapper -exec "sudo -E" -race ./tstest/integration/
|
||||
run: PATH=$PWD/tool:$PATH /tmp/testwrapper -exec "sudo -E" -race ./tstest/integration/ -verbose-tailscaled -verbose-tailscale
|
||||
env:
|
||||
TS_TEST_SHARD: ${{ matrix.shard }}
|
||||
|
||||
|
@ -1153,6 +1153,11 @@ func TestDNSOverTCPIntervalResolver(t *testing.T) {
|
||||
t.Fatalf("error converting self dns name to fqdn: %v", err)
|
||||
}
|
||||
|
||||
out, err := n1.Tailscale("status").Output()
|
||||
t.Logf("XXX: %s\n%s", err, string(out))
|
||||
out, err = n1.Tailscale("dns", "status").Output()
|
||||
t.Logf("XXX: %s\n%s", err, string(out))
|
||||
|
||||
cases := []struct {
|
||||
network string
|
||||
serviceAddr netip.Addr
|
||||
@ -1170,6 +1175,7 @@ func TestDNSOverTCPIntervalResolver(t *testing.T) {
|
||||
err = tstest.WaitFor(time.Second*5, func() error {
|
||||
m := new(dns.Msg)
|
||||
m.SetQuestion(selfDNSName.WithTrailingDot(), dns.TypeA)
|
||||
t.Logf("XXX: dig %s @%s", selfDNSName.WithTrailingDot(), c.serviceAddr.String())
|
||||
conn, err := net.DialTimeout(c.network, net.JoinHostPort(c.serviceAddr.String(), "53"), time.Second*1)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user