Skip to content

Commit 81c6096

Browse files
committed
test: fix test script
1 parent c5cda48 commit 81c6096

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/case/005.alias.empty.root.bash

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ source "$root"/lib.bash
55
"$ghfs" -l 3003 -R -a :world:"$fs"/vhost1/go :/not/exist/name:"$fs"/vhost1/yes &
66
sleep 0.05 # wait server ready
77

8-
file1status=$(curl_get_status http://127.0.0.1:3003/file1.txt | head -n 1 | cut -d ' ' -f 2)
8+
file1status=$(curl_get_status http://127.0.0.1:3003/file1.txt)
99
assert "$file1status" '404'
1010

11-
file1headstatus=$(curl_head_status http://127.0.0.1:3003/file1.txt | head -n 1 | cut -d ' ' -f 2)
11+
file1headstatus=$(curl_head_status http://127.0.0.1:3003/file1.txt)
1212
assert "$file1headstatus" '404'
1313

14-
hellostatus=$(curl_get_status http://127.0.0.1:3003/hello/index.txt | head -n 1 | cut -d ' ' -f 2)
14+
hellostatus=$(curl_get_status http://127.0.0.1:3003/hello/index.txt)
1515
assert "$hellostatus" '404'
1616

17-
helloheadstatus=$(curl_head_status http://127.0.0.1:3003/hello/index.txt | head -n 1 | cut -d ' ' -f 2)
17+
helloheadstatus=$(curl_head_status http://127.0.0.1:3003/hello/index.txt)
1818
assert "$helloheadstatus" '404'
1919

2020
go=$(curl_get_body http://127.0.0.1:3003/world/index.txt)

0 commit comments

Comments
 (0)