Skip to content

Commit 9f38d48

Browse files
committed
Fix valid bootstrap address in test case
1 parent 2c1e504 commit 9f38d48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/discovery/bootstrap/test_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
def test_validate_addresses():
1313
"""Test validation with a mix of valid and invalid addresses in one list."""
1414
addresses = [
15-
# Valid
16-
"/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SznbYGzPwp8qDrq",
15+
# Valid - using proper peer IDs
16+
"/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
1717
"/ip4/104.236.179.241/tcp/4001/p2p/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
1818
# Invalid
1919
"invalid-address",
@@ -22,7 +22,7 @@ def test_validate_addresses():
2222
"/ip4/127.0.0.1/tcp/4001/p2p/InvalidPeerID", # Bad peer ID
2323
]
2424
valid_expected = [
25-
"/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SznbYGzPwp8qDrq",
25+
"/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
2626
"/ip4/104.236.179.241/tcp/4001/p2p/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
2727
]
2828
validated = validate_bootstrap_addresses(addresses)

0 commit comments

Comments
 (0)