@@ -30,6 +30,8 @@ import (
30
30
"google.golang.org/grpc/status"
31
31
)
32
32
33
+ const TimeThreshold = 100 * time .Millisecond
34
+
33
35
var _ = Describe ("Server" , func () {
34
36
var (
35
37
fakeEchoService * fakes.EchoServiceServer
@@ -190,7 +192,7 @@ var _ = Describe("Server", func() {
190
192
Expect (ok ).To (BeTrue ())
191
193
Expect (field .Type ).To (Equal (zapcore .TimeType ))
192
194
Expect (field .Integer ).NotTo (BeZero ())
193
- Expect (time .Unix (0 , field .Integer )).To (BeTemporally ("~" , deadline , 10 * time . Millisecond ))
195
+ Expect (time .Unix (0 , field .Integer )).To (BeTemporally ("~" , deadline , TimeThreshold ))
194
196
case "grpc.peer_address" :
195
197
Expect (field .Type ).To (Equal (zapcore .StringType ))
196
198
Expect (field .String ).To (HavePrefix ("127.0.0.1" ))
@@ -370,7 +372,7 @@ var _ = Describe("Server", func() {
370
372
Expect (ok ).To (BeTrue ())
371
373
Expect (field .Type ).To (Equal (zapcore .TimeType ))
372
374
Expect (field .Integer ).NotTo (BeZero ())
373
- Expect (time .Unix (0 , field .Integer )).To (BeTemporally ("~" , deadline , 10 * time . Millisecond ))
375
+ Expect (time .Unix (0 , field .Integer )).To (BeTemporally ("~" , deadline , TimeThreshold ))
374
376
case "grpc.peer_address" :
375
377
Expect (field .Type ).To (Equal (zapcore .StringType ))
376
378
Expect (field .String ).To (HavePrefix ("127.0.0.1" ))
0 commit comments