Skip to content

Commit f5ff9e8

Browse files
committed
Fix test with new(er?) google IP address
1 parent 0b8cb51 commit f5ff9e8

File tree

20 files changed

+65
-65
lines changed

20 files changed

+65
-65
lines changed

bin/tests/named_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ fn test_forward() {
305305
);
306306
assert_eq!(
307307
*response.answers()[0].data().and_then(RData::as_a).unwrap(),
308-
A::new(93, 184, 216, 34)
308+
A::new(93, 184, 215, 14)
309309
);
310310

311311
// just tests that multiple queries work
@@ -327,7 +327,7 @@ fn test_forward() {
327327
);
328328
assert_eq!(
329329
*response.answers()[0].data().and_then(RData::as_a).unwrap(),
330-
A::new(93, 184, 216, 34)
330+
A::new(93, 184, 215, 14)
331331
);
332332
assert!(!response.header().authoritative());
333333
})

crates/async-std-resolver/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
//! // this can return IPv4 and/or IPv6 addresses
6767
//! let address = response.iter().next().expect("no addresses returned!");
6868
//! if address.is_ipv4() {
69-
//! assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
69+
//! assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
7070
//! } else {
7171
//! assert_eq!(address, IpAddr::V6(Ipv6Addr::new(0x2606, 0x2800, 0x220, 0x1, 0x248, 0x1893, 0x25c8, 0x1946)));
7272
//! }

crates/client/src/client/async_client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,15 +1118,15 @@ mod tests {
11181118

11191119
// validate it's what we expected
11201120
if let Some(RData::A(addr)) = message_returned.answers()[0].data() {
1121-
assert_eq!(*addr, A::new(93, 184, 216, 34));
1121+
assert_eq!(*addr, A::new(93, 184, 215, 14));
11221122
}
11231123

11241124
let message_parsed = Message::from_vec(&buffer)
11251125
.expect("buffer was parsed already by AsyncClient so we should be able to do it again");
11261126

11271127
// validate it's what we expected
11281128
if let Some(RData::A(addr)) = message_parsed.answers()[0].data() {
1129-
assert_eq!(*addr, A::new(93, 184, 216, 34));
1129+
assert_eq!(*addr, A::new(93, 184, 215, 14));
11301130
}
11311131
}
11321132
}

crates/client/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
//! // In order to access it we need to first check what type of record it is
130130
//! // In this case we are interested in A, IPv4 address
131131
//! if let Some(RData::A(ref ip)) = answers[0].data() {
132-
//! assert_eq!(*ip, A::new(93, 184, 216, 34))
132+
//! assert_eq!(*ip, A::new(93, 184, 215, 14))
133133
//! } else {
134134
//! assert!(false, "unexpected result")
135135
//! }
@@ -264,7 +264,7 @@
264264
//!
265265
//! // validate it's what we expected
266266
//! if let Some(RData::A(addr)) = response.answers()[0].data() {
267-
//! assert_eq!(*addr, A::new(93, 184, 216, 34));
267+
//! assert_eq!(*addr, A::new(93, 184, 215, 14));
268268
//! }
269269
//! }
270270
//! ```

crates/proto/src/h3/h3_client_stream.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ mod tests {
493493
.and_then(RData::as_a)
494494
.expect("Expected A record");
495495

496-
assert_eq!(addr, &A::new(93, 184, 216, 34));
496+
assert_eq!(addr, &A::new(93, 184, 215, 14));
497497

498498
//
499499
// assert that the connection works for a second query
@@ -558,7 +558,7 @@ mod tests {
558558
.and_then(RData::as_a)
559559
.expect("Expected A record");
560560

561-
assert_eq!(addr, &A::new(93, 184, 216, 34));
561+
assert_eq!(addr, &A::new(93, 184, 215, 14));
562562

563563
//
564564
// assert that the connection works for a second query
@@ -625,7 +625,7 @@ mod tests {
625625
.and_then(RData::as_a)
626626
.expect("invalid response, expected A record");
627627

628-
assert_eq!(addr, &A::new(93, 184, 216, 34));
628+
assert_eq!(addr, &A::new(93, 184, 215, 14));
629629

630630
//
631631
// assert that the connection works for a second query

crates/resolver/examples/custom_provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async fn lookup_test<R: ConnectionProvider>(resolver: AsyncResolver<R>) {
6464
// this can return IPv4 and/or IPv6 addresses
6565
let address = response.iter().next().expect("no addresses returned!");
6666
if address.is_ipv4() {
67-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
67+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
6868
} else {
6969
assert_eq!(
7070
address,

crates/resolver/src/async_resolver.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ pub mod testing {
477477
assert_eq!(response.iter().count(), 1);
478478
for address in response.iter() {
479479
if address.is_ipv4() {
480-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
480+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
481481
} else {
482482
assert_eq!(
483483
address,
@@ -592,7 +592,7 @@ pub mod testing {
592592
//assert_eq!(response.iter().count(), 1);
593593
for address in response.iter() {
594594
if address.is_ipv4() {
595-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
595+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
596596
} else {
597597
assert_eq!(
598598
address,
@@ -665,7 +665,7 @@ pub mod testing {
665665
assert_eq!(response.iter().count(), 2);
666666
for address in response.iter() {
667667
if address.is_ipv4() {
668-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
668+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
669669
} else {
670670
assert_eq!(
671671
address,
@@ -727,7 +727,7 @@ pub mod testing {
727727
assert_eq!(response.iter().count(), 1);
728728
for address in response.iter() {
729729
if address.is_ipv4() {
730-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
730+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
731731
} else {
732732
panic!("should only be looking up IPv4");
733733
}
@@ -763,7 +763,7 @@ pub mod testing {
763763
assert_eq!(response.iter().count(), 1);
764764
for address in response.iter() {
765765
if address.is_ipv4() {
766-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
766+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
767767
} else {
768768
panic!("should only be looking up IPv4");
769769
}
@@ -802,7 +802,7 @@ pub mod testing {
802802
assert_eq!(response.iter().count(), 1);
803803
for address in response.iter() {
804804
if address.is_ipv4() {
805-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
805+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
806806
} else {
807807
panic!("should only be looking up IPv4");
808808
}
@@ -842,7 +842,7 @@ pub mod testing {
842842
assert_eq!(response.iter().count(), 1);
843843
for address in response.iter() {
844844
if address.is_ipv4() {
845-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
845+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
846846
} else {
847847
panic!("should only be looking up IPv4");
848848
}
@@ -881,7 +881,7 @@ pub mod testing {
881881
assert_eq!(response.iter().count(), 1);
882882
for address in response.iter() {
883883
if address.is_ipv4() {
884-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
884+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
885885
} else {
886886
panic!("should only be looking up IPv4");
887887
}

crates/resolver/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
//! // this can return IPv4 and/or IPv6 addresses
6161
//! let address = response.iter().next().expect("no addresses returned!");
6262
//! if address.is_ipv4() {
63-
//! assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
63+
//! assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
6464
//! } else {
6565
//! assert_eq!(address, IpAddr::V6(Ipv6Addr::new(0x2606, 0x2800, 0x220, 0x1, 0x248, 0x1893, 0x25c8, 0x1946)));
6666
//! }
@@ -126,7 +126,7 @@
126126
//! // this can return IPv4 and/or IPv6 addresses
127127
//! let address = response.iter().next().expect("no addresses returned!");
128128
//! if address.is_ipv4() {
129-
//! assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
129+
//! assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
130130
//! } else {
131131
//! assert_eq!(address, IpAddr::V6(Ipv6Addr::new(0x2606, 0x2800, 0x220, 0x1, 0x248, 0x1893, 0x25c8, 0x1946)));
132132
//! }

crates/resolver/src/name_server/name_server_pool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ mod tests {
613613
.data()
614614
.and_then(RData::as_a)
615615
.expect("no a record available"),
616-
Ipv4Addr::new(93, 184, 216, 34).into()
616+
Ipv4Addr::new(93, 184, 215, 14).into()
617617
);
618618

619619
assert!(
@@ -637,7 +637,7 @@ mod tests {
637637
.data()
638638
.and_then(RData::as_aaaa)
639639
.expect("no aaaa record available"),
640-
Ipv6Addr::new(0x2606, 0x2800, 0x0220, 0x0001, 0x0248, 0x1893, 0x25c8, 0x1946).into()
640+
Ipv6Addr::new(0x2606, 0x2800, 0x021f, 0xcb07, 0x6820, 0x80da, 0xaf6b, 0x8b2c).into()
641641
);
642642

643643
assert!(

crates/resolver/src/resolver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ mod tests {
181181
assert_eq!(response.iter().count(), 1);
182182
for address in response.iter() {
183183
if address.is_ipv4() {
184-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
184+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
185185
} else {
186186
assert_eq!(
187187
address,
@@ -206,7 +206,7 @@ mod tests {
206206
assert_eq!(response.iter().count(), 1);
207207
for address in response.iter() {
208208
if address.is_ipv4() {
209-
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
209+
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
210210
} else {
211211
assert_eq!(
212212
address,

0 commit comments

Comments
 (0)