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