mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 07:26:47 +00:00
CI/build: Update Go version, linters and fix minor issues (#1612)
* CI/build: Update Go version, linters and fix minor issues * linters: Add intrange, copyloopvar, additional go vet linters to match gopls and fix issues
This commit is contained in:
@@ -35,7 +35,6 @@ func TestNewManager(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
got, err := NewManager(tt.args.config)
|
||||
@@ -108,7 +107,6 @@ func TestGctScriptManagerGetMaxVirtualMachines(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
g := &GctScriptManager{
|
||||
config: tt.fields.config,
|
||||
|
||||
@@ -569,12 +569,12 @@ func TestVMCount(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func configHelper(enabled, imports bool, max uint8) *Config {
|
||||
func configHelper(enabled, imports bool, maxVMs uint8) *Config {
|
||||
return &Config{
|
||||
Enabled: enabled,
|
||||
AllowImports: imports,
|
||||
ScriptTimeout: testVirtualMachineTimeout,
|
||||
MaxVirtualMachines: max,
|
||||
MaxVirtualMachines: maxVMs,
|
||||
Verbose: true,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user