mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-07 11:45:36 -05:00
fix this damn non determinism test
This commit is contained in:
parent
ee637c7c81
commit
f720a01ed8
1 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,10 @@ sleep 0.1
|
|||
curl -N "http://localhost:${PORT}/vfs/a.txt" --max-time 5
|
||||
|
||||
sleep 0.1
|
||||
curl -N "http://localhost:${PORT}/vfs/a.txt" -H 'accept-encoding: deflate' --max-time 5 | base64
|
||||
# NOTE: the sed is there because of a timing/deflate non determinism. Both strings
|
||||
# decompress to the same "hello\nworld\n" but which one is picked depends on
|
||||
# the machine/library/… ?? but both are valid.
|
||||
curl -N "http://localhost:${PORT}/vfs/a.txt" -H 'accept-encoding: deflate' --max-time 5 | base64 | sed 's+ykjNycnnKs8vyknhAgAAAP//AwA=+ykjNycnnKs8vyknhAgAAAP//+'
|
||||
|
||||
sleep 0.1
|
||||
curl -N "http://localhost:${PORT}/vfs/sub/yolo.html" --max-time 5
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue