Merge pull request #1651 from jonboulle/discard

etcdserver: discard log output in tests
release-2.0
Jonathan Boulle 2014-11-07 12:05:40 -08:00
commit 32a82bb423
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,8 @@ package etcdserver
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"math/rand"
"path"
"reflect"
@ -36,6 +38,10 @@ import (
"github.com/coreos/etcd/store"
)
func init() {
log.SetOutput(ioutil.Discard)
}
func TestGetExpirationTime(t *testing.T) {
tests := []struct {
r pb.Request