Skip to content

Commit 96a39b7

Browse files
fix: appease linter
1 parent c84ae34 commit 96a39b7

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

agent/agentcontainers/api_test.go

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3905,9 +3905,9 @@ func TestDevcontainerPrebuildSupport(t *testing.T) {
39053905
MergedConfiguration: agentcontainers.DevcontainerMergedConfiguration{
39063906
Customizations: agentcontainers.DevcontainerMergedCustomizations{
39073907
Coder: []agentcontainers.CoderCustomization{
3908-
agentcontainers.CoderCustomization{
3908+
{
39093909
Apps: []agentcontainers.SubAgentApp{
3910-
agentcontainers.SubAgentApp{
3910+
{
39113911
Slug: "zed",
39123912
URL: prebuildAppURL,
39133913
},
@@ -3929,10 +3929,8 @@ func TestDevcontainerPrebuildSupport(t *testing.T) {
39293929
testDC.WorkspaceFolder, testDC.ConfigPath,
39303930
"/.coder-agent/coder", []string{"agent"}, gomock.Any(), gomock.Any(),
39313931
).Do(func(ctx context.Context, _, _, _ string, _ []string, _ ...agentcontainers.DevcontainerCLIExecOptions) error {
3932-
select {
3933-
case <-ctx.Done():
3934-
return nil
3935-
}
3932+
<-ctx.Done()
3933+
return nil
39363934
}),
39373935
)
39383936

@@ -4018,9 +4016,9 @@ func TestDevcontainerPrebuildSupport(t *testing.T) {
40184016
MergedConfiguration: agentcontainers.DevcontainerMergedConfiguration{
40194017
Customizations: agentcontainers.DevcontainerMergedCustomizations{
40204018
Coder: []agentcontainers.CoderCustomization{
4021-
agentcontainers.CoderCustomization{
4019+
{
40224020
Apps: []agentcontainers.SubAgentApp{
4023-
agentcontainers.SubAgentApp{
4021+
{
40244022
Slug: "zed",
40254023
URL: userAppURL,
40264024
},
@@ -4042,10 +4040,8 @@ func TestDevcontainerPrebuildSupport(t *testing.T) {
40424040
testDC.WorkspaceFolder, testDC.ConfigPath,
40434041
"/.coder-agent/coder", []string{"agent"}, gomock.Any(), gomock.Any(),
40444042
).Do(func(ctx context.Context, _, _, _ string, _ []string, _ ...agentcontainers.DevcontainerCLIExecOptions) error {
4045-
select {
4046-
case <-ctx.Done():
4047-
return nil
4048-
}
4043+
<-ctx.Done()
4044+
return nil
40494045
}),
40504046
)
40514047

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