Skip to content

Commit d9cd988

Browse files
committed
fix lint
1 parent 4c71a6c commit d9cd988

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

agent/agent_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,7 @@ func TestAgent_DevcontainerRecreate(t *testing.T) {
21352135
if os.Getenv("CODER_TEST_USE_DOCKER") != "1" {
21362136
t.Skip("Set CODER_TEST_USE_DOCKER=1 to run this test")
21372137
}
2138+
t.Parallel()
21382139

21392140
pool, err := dockertest.NewPool("")
21402141
require.NoError(t, err, "Could not connect to docker")

agent/agentcontainers/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ func WithWatcher(w watcher.Watcher) Option {
137137
// controlplane.
138138
type ScriptLogger interface {
139139
Send(ctx context.Context, log ...agentsdk.Log) error
140-
Flush(context.Context) error
140+
Flush(ctx context.Context) error
141141
}
142142

143143
// noopScriptLogger is a no-op implementation of the ScriptLogger
144144
// interface.
145145
type noopScriptLogger struct{}
146146

147-
func (noopScriptLogger) Send(ctx context.Context, log ...agentsdk.Log) error { return nil }
148-
func (noopScriptLogger) Flush(ctx context.Context) error { return nil }
147+
func (noopScriptLogger) Send(context.Context, ...agentsdk.Log) error { return nil }
148+
func (noopScriptLogger) Flush(context.Context) error { return nil }
149149

150150
// WithScriptLogger sets the script logger provider for devcontainer operations.
151151
func WithScriptLogger(scriptLogger func(logSourceID uuid.UUID) ScriptLogger) Option {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy