Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Fixes #5598
Fix https://github.com/coreos/etcd/issues/5598. race conditions were detected in iterating the test table because the go func closure doesn't receive the 'puts' index in the argument. This can cause the test to run wrong put operations.