Skip to content

Commit

Permalink
To see if this test failure is a race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
skarekrow committed Nov 14, 2024
1 parent 8a4b4ff commit 16c4ef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/api/tests/public/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"io/ioutil"
"net/http"
"playbook-dispatcher/internal/common/utils/test"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand All @@ -17,6 +18,8 @@ var _ = Describe("Middleware", func() {

It("attaches request id to the response", func() {
const requestId = "33ee136c-da81-4a68-953c-c22bdd096d30"
// For schmits and giggles to see if it's a race condition
time.Sleep(2 * time.Second)

req, err := http.NewRequest(http.MethodGet, "http://localhost:9002/api/playbook-dispatcher/v1/runs", nil)
Expect(err).ToNot(HaveOccurred())
Expand Down

0 comments on commit 16c4ef7

Please sign in to comment.