Skip to content

Commit

Permalink
chore: fix some staticcheck complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed Jan 3, 2025
1 parent 359b83c commit a1916db
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions migrations/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ func TestCheckVersion(t *testing.T) {
testcontainers.Logger = testcontainers.TestLogger(t)

// setup a container to test in
container, err := mariadb.RunContainer(ctx,
testcontainers.WithImage("mariadb:latest"),
container, err := mariadb.Run(ctx, "mariadb:latest",
mariadb.WithDatabase("test"),
mariadb.WithUsername("root"),
mariadb.WithPassword(""),
Expand Down
2 changes: 1 addition & 1 deletion rpc/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func fromProtoQueueID(id *QueueID) radio.QueueID {
return radio.QueueID{}
}

return radio.QueueID{rid}
return radio.QueueID{ID: rid}
}

func EncodeQueueEntry(entry radio.QueueEntry) ([]byte, error) {
Expand Down
5 changes: 0 additions & 5 deletions storage/test/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"os"
"reflect"
"sync"
"testing"

radio "github.com/R-a-dio/valkyrie"
Expand Down Expand Up @@ -85,16 +84,12 @@ func NewSuite(ctx context.Context, ts TestSetup) *Suite {
return &Suite{
ctx: ctx,
ToBeTested: ts,
storageMap: make(map[string]radio.StorageService),
}
}

type Suite struct {
ctx context.Context
ToBeTested TestSetup

storageMu sync.Mutex
storageMap map[string]radio.StorageService
}

func (suite *Suite) BeforeTest(testName string) error {
Expand Down

0 comments on commit a1916db

Please sign in to comment.