summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpkg/pool/static_pool_test.go2
-rw-r--r--plugins/jobs/rpc.go2
-rw-r--r--tests/plugins/jobs/jobs_amqp_test.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/pkg/pool/static_pool_test.go b/pkg/pool/static_pool_test.go
index 3f9ab2bb..2ac2093d 100755
--- a/pkg/pool/static_pool_test.go
+++ b/pkg/pool/static_pool_test.go
@@ -581,7 +581,7 @@ Benchmark_Pool_Echo-32 47760 30517 ns/op 7955 B/op 19 allo
Benchmark_Pool_Echo-32 48148 29816 ns/op 7950 B/op 19 allocs/op
Benchmark_Pool_Echo-32 52705 29809 ns/op 7979 B/op 19 allocs/op
Benchmark_Pool_Echo-32 54374 27776 ns/op 7947 B/op 19 allocs/op
- */
+*/
func Benchmark_Pool_Echo(b *testing.B) {
ctx := context.Background()
p, err := Initialize(
diff --git a/plugins/jobs/rpc.go b/plugins/jobs/rpc.go
index 0d15fb0f..aeba499b 100644
--- a/plugins/jobs/rpc.go
+++ b/plugins/jobs/rpc.go
@@ -111,7 +111,7 @@ func (r *rpc) Declare(req *jobsv1beta.DeclareRequest, _ *jobsv1beta.Empty) error
func (r *rpc) Destroy(req *jobsv1beta.Pipelines, resp *jobsv1beta.Pipelines) error {
const op = errors.Op("rcp_declare_pipeline")
- var destroyed []string
+ var destroyed []string //nolint:prealloc
for i := 0; i < len(req.GetPipelines()); i++ {
err := r.p.Destroy(req.GetPipelines()[i])
if err != nil {
diff --git a/tests/plugins/jobs/jobs_amqp_test.go b/tests/plugins/jobs/jobs_amqp_test.go
index 7e74891c..52bb6c7c 100644
--- a/tests/plugins/jobs/jobs_amqp_test.go
+++ b/tests/plugins/jobs/jobs_amqp_test.go
@@ -149,7 +149,7 @@ func TestAMQPDeclare(t *testing.T) {
&server.Plugin{},
&rpcPlugin.Plugin{},
&logger.ZapLogger{},
- //mockLogger,
+ // mockLogger,
&jobs.Plugin{},
&resetter.Plugin{},
&informer.Plugin{},