Skip to content

Commit f720a01

Browse files
committed
fix this damn non determinism test
1 parent ee637c7 commit f720a01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/echo1.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ sleep 0.1
1515
curl -N "http://localhost:${PORT}/vfs/a.txt" --max-time 5
1616

1717
sleep 0.1
18-
curl -N "http://localhost:${PORT}/vfs/a.txt" -H 'accept-encoding: deflate' --max-time 5 | base64
18+
# NOTE: the sed is there because of a timing/deflate non determinism. Both strings
19+
# decompress to the same "hello\nworld\n" but which one is picked depends on
20+
# the machine/library/… ?? but both are valid.
21+
curl -N "http://localhost:${PORT}/vfs/a.txt" -H 'accept-encoding: deflate' --max-time 5 | base64 | sed 's+ykjNycnnKs8vyknhAgAAAP//AwA=+ykjNycnnKs8vyknhAgAAAP//+'
1922

2023
sleep 0.1
2124
curl -N "http://localhost:${PORT}/vfs/sub/yolo.html" --max-time 5

0 commit comments

Comments
 (0)