Skip to content

Commit ce54f14

Browse files
committed
[FAB-12766] increase temporal threshold in tests
Change-Id: I5bd6966b88fd5ce87b9d39b3f94d5e8e8ba07346 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent be90d3c commit ce54f14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

common/grpclogging/server_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import (
3030
"google.golang.org/grpc/status"
3131
)
3232

33+
const TimeThreshold = 100 * time.Millisecond
34+
3335
var _ = Describe("Server", func() {
3436
var (
3537
fakeEchoService *fakes.EchoServiceServer
@@ -190,7 +192,7 @@ var _ = Describe("Server", func() {
190192
Expect(ok).To(BeTrue())
191193
Expect(field.Type).To(Equal(zapcore.TimeType))
192194
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))
194196
case "grpc.peer_address":
195197
Expect(field.Type).To(Equal(zapcore.StringType))
196198
Expect(field.String).To(HavePrefix("127.0.0.1"))
@@ -370,7 +372,7 @@ var _ = Describe("Server", func() {
370372
Expect(ok).To(BeTrue())
371373
Expect(field.Type).To(Equal(zapcore.TimeType))
372374
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))
374376
case "grpc.peer_address":
375377
Expect(field.Type).To(Equal(zapcore.StringType))
376378
Expect(field.String).To(HavePrefix("127.0.0.1"))

0 commit comments

Comments
 (0)