From e89cdf6199f1e3116bf6df99fced73d1baa5f0e8 Mon Sep 17 00:00:00 2001
From: Deluan <deluan@deluan.com>
Date: Thu, 30 Mar 2023 09:25:18 -0400
Subject: [PATCH] Fix flaky tests

---
 server/events/sse_test.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/events/sse_test.go b/server/events/sse_test.go
index 6ff8426b1..b2a37f0ff 100644
--- a/server/events/sse_test.go
+++ b/server/events/sse_test.go
@@ -107,7 +107,7 @@ var _ = Describe("Broker", func() {
 			Context("when the write does not complete before the timeout", func() {
 				BeforeEach(func() {
 					timeout = 1 * time.Millisecond
-					flusher.delay = 10 * time.Millisecond
+					flusher.delay = 2 * time.Second
 				})
 
 				It("should return an errWriteTimeOut error", func() {
@@ -146,7 +146,7 @@ var _ = Describe("Broker", func() {
 				Context("when the write does not complete before the timeout", func() {
 					BeforeEach(func() {
 						timeout = 1 * time.Millisecond
-						writer.delay = 10 * time.Millisecond
+						writer.delay = 2 * time.Second
 					})
 
 					It("should return an errWriteTimeOut error", func() {