Skip to content

Commit

Permalink
fix partitiontest linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed Sep 19, 2024
1 parent 9be9309 commit 53d2216
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daemon/algod/api/server/lib/middlewares/cors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ import (
"net/http/httptest"
"testing"

"github.com/algorand/go-algorand/test/partitiontest"
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/assert"
)

func TestMakeCORS(t *testing.T) {
partitiontest.PartitionTest(t)
e := echo.New()
tokenHeader := "X-Algo-API-Token"
corsMiddleware := MakeCORS(tokenHeader)
Expand Down Expand Up @@ -89,6 +91,7 @@ func TestMakeCORS(t *testing.T) {
}

func TestMakePNA(t *testing.T) {
partitiontest.PartitionTest(t)
e := echo.New()
pnaMiddleware := MakePNA()

Expand Down

0 comments on commit 53d2216

Please sign in to comment.