Skip to content

Commit

Permalink
Removed github.com/rs/cors from dependencies and added testing-from-o…
Browse files Browse the repository at this point in the history
…utside to go.work
  • Loading branch information
EwenQuim committed Jul 4, 2024
1 parent aa0b133 commit 45d1dc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 3 additions & 2 deletions go.work
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
go 1.22.2
go 1.22.4

use (
.
./cmd/fuego
./examples/acme-tls
./examples/basic
./examples/custom-serializer
./examples/full-app-gourmet
./examples/hello-world
./examples/openapi
./examples/acme-tls
./testing-from-outside
)
5 changes: 0 additions & 5 deletions serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"testing"
"time"

"github.com/rs/cors"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -392,10 +391,6 @@ func TestServer_Run(t *testing.T) {
t.Run("can run server", func(t *testing.T) {
s := NewServer(
WithoutLogger(),
WithCorsMiddleware(cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET"},
}).Handler),
)

Get(s, "/test", func(ctx *ContextNoBody) (string, error) {
Expand Down

0 comments on commit 45d1dc9

Please sign in to comment.