Skip to content

Commit

Permalink
fixed gomnd linter issues in SLO tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Apr 22, 2024
1 parent b746e2a commit 57ffbf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/slo/database/sql/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func NewStorage(ctx context.Context, cfg *config.Config, poolSize int) (s *Stora
ctx, cancel := context.WithTimeout(ctx, time.Minute*5) //nolint:gomnd
defer cancel()

retryBudget := budget.New(int(float64(poolSize) * 0.1))
retryBudget := budget.New(int(float64(poolSize) * 0.1)) //nolint:gomnd

s = &Storage{
cfg: cfg,
Expand Down
2 changes: 1 addition & 1 deletion tests/slo/native/query/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func NewStorage(ctx context.Context, cfg *config.Config, poolSize int) (*Storage
ctx, cancel := context.WithTimeout(ctx, time.Minute*5) //nolint:gomnd
defer cancel()

retryBudget := budget.New(int(float64(poolSize) * 0.1))
retryBudget := budget.New(int(float64(poolSize) * 0.1)) //nolint:gomnd

db, err := ydb.Open(ctx,
cfg.Endpoint+cfg.DB,
Expand Down
2 changes: 1 addition & 1 deletion tests/slo/native/table/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func NewStorage(ctx context.Context, cfg *config.Config, poolSize int) (*Storage
ctx, cancel := context.WithTimeout(ctx, time.Minute*5) //nolint:gomnd
defer cancel()

retryBudget := budget.New(int(float64(poolSize) * 0.1))
retryBudget := budget.New(int(float64(poolSize) * 0.1)) //nolint:gomnd

db, err := ydb.Open(
ctx,
Expand Down

0 comments on commit 57ffbf4

Please sign in to comment.