Skip to content

Commit

Permalink
📦 Remove Parallel from global test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenny committed Jul 9, 2020
1 parent 2d034f2 commit 4de6250
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package fiber

import (
"fmt"
"sync/atomic"
"testing"

utils "github.com/gofiber/utils"
Expand Down Expand Up @@ -201,9 +202,7 @@ func Test_Path_matchParams(t *testing.T) {

// go test -race -run Test_Reset_StartParamPosList
func Test_Reset_StartParamPosList(t *testing.T) {
t.Parallel()

startParamPosList = uint32(len(paramsPosDummy)) - 10
atomic.StoreUint32(&startParamPosList, uint32(len(paramsPosDummy))-10)

getAllocFreeParamsPos(5)

Expand All @@ -212,9 +211,7 @@ func Test_Reset_StartParamPosList(t *testing.T) {

// go test -race -run Test_Reset_startParamList
func Test_Reset_startParamList(t *testing.T) {
t.Parallel()

startParamList = uint32(len(paramsDummy)) - 10
atomic.StoreUint32(&startParamList, uint32(len(paramsDummy))-10)

getAllocFreeParams(5)

Expand Down

0 comments on commit 4de6250

Please sign in to comment.