Skip to content

Commit dfb2ffe

Browse files
committed
test: fix test script
1 parent 851c8e1 commit dfb2ffe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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)

test/main.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export cert=$(realpath cert)
1616
export src=$(realpath ../src)
1717
export ghfs=$(realpath bin)/ghfs
1818

19-
go build -o "$ghfs" "$src/main.go"
19+
GO111MODULE=auto go build -o "$ghfs" "$src/main.go"
2020

2121
pattern="$1"
2222
if [ -z "$pattern" ]; then

0 commit comments

Comments
 (0)