Skip to content

Commit a091203

Browse files
authored
Use _imaps._tcp.gmail.com in srv tests (#375)
* Seeing tests failures in CI with the current SRV entry `_xmpp-server._tcp.gmail.com.` https://github.com/envoyproxy/ratelimit/actions/runs/3466737811/jobs/5802374477#step:3:257 * What is odd is I also tried `_xmpp-server._tcp.google.com.` which is used in the upstream `net.LookupSRV` tests https://cs.opensource.google/go/go/+/master:src/net/lookup_test.go;l=47;drc=2b59307ac21135ab8db58e08fb98211fbedbb10d?q=LookupSRV&ss=go%2Fgo but that failed as well Signed-off-by: Arko Dasgupta <[email protected]>
1 parent bc3eca4 commit a091203

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/srv/srv_test.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@ func TestServerStringsFromSevWhenSrvIsWellFormedButNotLookupable(t *testing.T) {
4949
}
5050

5151
func TestServerStrings(t *testing.T) {
52-
// it seems reasonable to think _xmpp-server._tcp.gmail.com will be available for a long time!
5352
srvResolver := srv.DnsSrvResolver{}
54-
servers, err := srvResolver.ServerStringsFromSrv("_xmpp-server._tcp.gmail.com.")
53+
servers, err := srvResolver.ServerStringsFromSrv("_imaps._tcp.gmail.com.")
54+
assert.Nil(t, err)
5555
assert.True(t, len(servers) > 0)
5656
for _, s := range servers {
57-
assert.Regexp(t, `^.*xmpp-server.*google.com.:\d+$`, s)
57+
assert.Regexp(t, `^.*imap.*gmail.com.:\d+$`, s)
5858
}
59-
assert.Nil(t, err)
6059
}

0 commit comments

Comments
 (0)