From 56a0147d7180ca2b877b6f678e3ab856bf74f2bd Mon Sep 17 00:00:00 2001 From: Nino Kodabande Date: Thu, 12 Sep 2024 12:08:51 -0700 Subject: [PATCH] changes the IP address for the creds test in BATS Signed-off-by: Nino Kodabande --- bats/tests/registry/creds.bats | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bats/tests/registry/creds.bats b/bats/tests/registry/creds.bats index f4bb56f52c7..22cfc3f3a28 100644 --- a/bats/tests/registry/creds.bats +++ b/bats/tests/registry/creds.bats @@ -39,13 +39,8 @@ local_setup() { # Essentially localhost, but needs to be a routable IP that also works # from inside a container. Will be turned into a DNS name using sslip.io. if is_windows; then - if using_networking_tunnel; then - # When using network tunnel, use a fixed address. - ipaddr="192.168.1.2" - else - # In WSL all distros have the same IP address - ipaddr="$(ip a show eth0 | awk '/inet / {sub("/.*",""); print $2}')" - fi + ipaddr="192.168.143.1" + fi else # Lima uses a fixed hard-coded IP address ipaddr="192.168.5.15"