@cryptotaxi247 / kubo / commits / df66dacc2

test(sharness): update ping test since go-libp2p v0.31.0 changed the reported error message

Adin Schmahmann committed Sep 1, 2023 at 14:28 UTC df66dacc263c79b5bae54f03cdea5eb16388fa54
1 file changed +1 -1
test/sharness/t0041-ping.sh
+1 -1
@@ -27,7 +27,7 @@ test_expect_success "test ping other" '
27
28 test_expect_success "test ping unreachable peer" '
29 printf "Looking up peer %s\n" "$BAD_PEER" > bad_ping_exp &&
30 - printf "PING QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJx.\nPing error: failed to dial: no addresses\nError: ping failed\n" >> bad_ping_exp &&
30 + printf "PING QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJx.\nPing error: failed to dial: failed to dial QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJx: no addresses\nError: ping failed\n" >> bad_ping_exp &&
31 ! ipfsi 0 ping -n2 -- "$BAD_PEER" > bad_ping_actual 2>&1 &&
32 test_cmp bad_ping_exp bad_ping_actual
33 '