Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
imbue11235 committed Aug 3, 2022
1 parent 2da8413 commit 2a2bc74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"net/http"
"testing"
"time"
)

func TestMiddleware(t *testing.T) {
Expand All @@ -23,6 +24,7 @@ func TestMiddleware(t *testing.T) {
{
path: "/",
handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
time.Sleep(2 * time.Second)
w.WriteHeader(http.StatusOK)
fmt.Fprint(w, "hello world")
}),
Expand Down

0 comments on commit 2a2bc74

Please sign in to comment.