Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit08509b4

Browse files
committed
fix lint
1 parent4c71a6c commit08509b4

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
ifos.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
@@ -136,16 +136,16 @@ func WithWatcher(w watcher.Watcher) Option {
136136
// ScriptLogger is an interface for sending devcontainer logs to the
137137
// controlplane.
138138
typeScriptLoggerinterface {
139-
Send(ctxcontext.Context,log...agentsdk.Log)error
139+
Send(context.Context,...agentsdk.Log)error
140140
Flush(context.Context)error
141141
}
142142

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

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp