mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #1651 from jonboulle/discard
etcdserver: discard log output in tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user