Skip to content

Commit 779b556

Browse files
committed
fix: fix test case - read server logs as text
1 parent 1a2a4ea commit 779b556

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/agent.bats

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ setup() {
5555
[ -e './simple-agent_profile_listen_addr' ]
5656
host=$(cat ./simple-agent_profile_listen_addr)
5757

58-
check_port=$(cat register.port | grep $host)
58+
check_port=$(cat register.port | grep -a $host)
5959
[ "$check_port" != "" ]
6060

6161
kill -9 $SAMPLE_PID
@@ -71,7 +71,7 @@ setup() {
7171
[ -e './simple-agent_profile_listen_addr' ]
7272
host=$(cat ./simple-agent_profile_listen_addr)
7373

74-
check_port=$(cat register.port | grep $host)
74+
check_port=$(cat register.port | grep -a $host)
7575
[ "$check_port" != "" ]
7676

7777
kill -9 $SAMPLE_PID
@@ -85,7 +85,7 @@ setup() {
8585
SAMPLE_PID=$!
8686
sleep 2
8787

88-
check_port=$(cat register.port | grep 7888)
88+
check_port=$(cat register.port | grep -a 7888)
8989
[ "$check_port" != "" ]
9090

9191
kill -9 $SAMPLE_PID
@@ -101,7 +101,7 @@ setup() {
101101
[ -e './simple-agent_profile_listen_addr' ]
102102
host=$(cat ./simple-agent_profile_listen_addr)
103103

104-
check_port=$(cat register.port | grep $host)
104+
check_port=$(cat register.port | grep -a $host)
105105
[ "$check_port" != "" ]
106106

107107
kill -9 $SAMPLE_PID

0 commit comments

Comments
 (0)