Fix sharness checking daemon output
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
Antonio Navarro Perez committed
Dec 7, 2022 at 15:14 UTC
e3436d1b95273cdf04708c4799105c29a8af6600
1 file changed
+8
-2
test/sharness/t0060-daemon.sh
+8
-2
@@ -43,6 +43,10 @@ test_expect_success "cleanup repo" '
43
'
44
45
test_init_ipfs
46
+test_expect_success "set Resource Manager variables showed at startup" '
47
+ ipfs config --json Swarm.ResourceMgr.MaxFileDescriptors 1024 &&
48
+ ipfs config Swarm.ResourceMgr.MaxMemory 4GB
49
+'
50
test_launch_ipfs_daemon
51
52
# this errors if we didn't --init $IPFS_PATH correctly
@@ -73,15 +77,17 @@ test_expect_success "ipfs gateway works with the correct allowed origin port" '
77
'
78
79
test_expect_success "ipfs daemon output looks good" '
76
- STARTFILE="ipfs cat /ipfs/$HASH_WELCOME_DOCS/readme" &&
80
+ STARTFILE="ipfs cat /ipfs/$HASH_WELCOME_DOCS/readme"
81
echo "Initializing daemon..." >expected_daemon &&
82
ipfs version --all >> expected_daemon &&
83
+ echo "" >>expected_daemon &&
84
echo "Computing default go-libp2p Resource Manager limits based on:" >>expected_daemon &&
80
- echo " - '"'"'Swarm.ResourceMgr.MaxMemory'"'"': \"4.2 GB\"" >>expected_daemon &&
85
+ echo " - '"'"'Swarm.ResourceMgr.MaxMemory'"'"': \"4GB\"" >>expected_daemon &&
86
echo " - '"'"'Swarm.ResourceMgr.MaxFileDescriptors'"'"': 1024" >>expected_daemon &&
87
echo "" >>expected_daemon &&
88
echo "Applying any user-supplied overrides on top." >>expected_daemon &&
89
echo "Run '"'"'ipfs swarm limit all'"'"' to see the resulting limits." >>expected_daemon &&
90
+ echo "" >>expected_daemon &&
91
sed "s/^/Swarm listening on /" listen_addrs >>expected_daemon &&
92
sed "s/^/Swarm announcing /" local_addrs >>expected_daemon &&
93
echo "API server listening on '$API_MADDR'" >>expected_daemon &&