[PATCH] Fix reversal of wait_for_repl return values

Jim Meyering jim at meyering.net
Wed Oct 20 06:21:43 UTC 2010


Jeff Darcy wrote:
> diff --git a/t/replication b/t/replication
> index 78911cc..e9a26d5 100644
> --- a/t/replication
> +++ b/t/replication
> @@ -47,8 +47,8 @@ api=http://localhost:$port
>  wait_for_repl() {
>         local n_req=$(curl -d op=rep_status $api) || return 1
>         case $n_req in
> -         '0 requests') return 1 ;;
> -         *) return 0 ;;
> +         '0 requests') return 0 ;;
> +         *) return 1 ;;

Embarrassing.  That was my error.  Thanks for fixing it.


More information about the iwhd-devel mailing list