Skip to content

Commit 1d351b3

Browse files
author
Amin Jamali
committed
Fix flaky test
Flake: https://ci.funtime.lol/teams/diego/pipelines/main/jobs/units-mysql/builds/81 - ensure RFC3339 is the timestamp it fails again
1 parent 45107d7 commit 1d351b3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmd/route-emitter/main_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,13 @@ var _ = Describe("Route Emitter", func() {
376376
cfg.RoutingAPI.ClientKeyFile = routingAPIClientKey
377377
cfg.UnregistrationInterval = durationjson.Duration(10 * time.Millisecond)
378378
cfg.UnregistrationSendCount = unregistrationSendCount
379+
cfg.LagerConfig = lagerflags.LagerConfig{
380+
LogLevel: string(lagerflags.DEBUG),
381+
RedactSecrets: false,
382+
RedactPatterns: nil,
383+
TimeFormat: lagerflags.FormatRFC3339,
384+
MaxDataStringLength: 0,
385+
}
379386
})
380387
})
381388

@@ -709,7 +716,7 @@ var _ = Describe("Route Emitter", func() {
709716
Eventually(runner).Should(gbytes.Say("caching-event"))
710717

711718
By("unblocking the sync loop")
712-
Eventually(blkChannel).Should(BeSent(struct{}{}))
719+
close(blkChannel)
713720

714721
expectedTcpRouteMapping = apimodels.NewTcpRouteMapping(routerGUID, 5222, "some-ip", 5222, 120)
715722

0 commit comments

Comments
 (0)