From 49b3bb067c49622b44bfb30942a8d8e9f83918d4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 3 Aug 2010 09:01:20 +0000 Subject: t0500: avoid race condition with timestamps Not sure what possessed me to clobber the original variable set in the parent, but the initial time for the subshell could be set too late in relation to the actual server time. So we need to stash the original time before any HTTP requests were made. --- t/t0500-cramp-streaming.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/t/t0500-cramp-streaming.sh b/t/t0500-cramp-streaming.sh index 0c18875..b97853d 100755 --- a/t/t0500-cramp-streaming.sh +++ b/t/t0500-cramp-streaming.sh @@ -27,7 +27,6 @@ t_begin "setup and start" && { # this will spew any unexpected input to stdout and be silent on success check () { ( - t0=$(date +%s) i=0 while read hello world do -- cgit v1.2.3-24-ge0c7