Skip to content

Remove extra UUID package from dependencies #821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ docker-dev:

docker-test:
docker compose -f docker-compose.yml -f docker-compose.dev.yml run --rm -p 2416:2416 challenge-bypass bash -c \
"(aws dynamodb delete-table \
"export AWS_PAGER='' && (aws dynamodb delete-table \
--table-name redemptions --endpoint-url http://dynamodb:8000 --region us-west-2 || \
aws dynamodb create-table \
--attribute-definitions AttributeName=id,AttributeType=S \
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ require (
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/prometheus/client_golang v1.14.0
github.com/robfig/cron/v3 v3.0.1
github.com/satori/go.uuid v1.2.0
github.com/segmentio/kafka-go v0.4.38
github.com/segmentio/kafka-go/sasl/aws_msk_iam_v2 v0.1.0
github.com/stretchr/testify v1.9.0
Expand Down Expand Up @@ -67,6 +66,7 @@ require (
github.com/redis/go-redis/v9 v9.8.0 // indirect
github.com/rs/xid v1.4.0 // indirect
github.com/rs/zerolog v1.29.0 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/shengdoushi/base58 v1.0.0 // indirect
github.com/throttled/throttled/v2 v2.12.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
Expand Down
6 changes: 4 additions & 2 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/brave-intl/bat-go/libs/middleware"
crypto "github.com/brave-intl/challenge-bypass-ristretto-ffi"
uuid "github.com/satori/go.uuid"
"github.com/google/uuid"
"github.com/stretchr/testify/suite"
)

Expand All @@ -49,7 +49,9 @@ func (suite *ServerTestSuite) SetupSuite() {
err := os.Setenv("ENV", "localtest")
suite.Require().NoError(err)

suite.accessToken = uuid.NewV4().String()
uuidV4, err := uuid.NewRandom()
suite.Require().NoError(err)
suite.accessToken = uuidV4.String()
middleware.TokenList = []string{suite.accessToken}

suite.srv = &Server{}
Expand Down
Loading