Skip to content

Commit 060fb57

Browse files
authored
chore(enterprise/coderd): ignore log errors in TestGetCryptoKeys/Unauthorized (#19282)
Fixes coder/internal#797
1 parent 5d42b18 commit 060fb57

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

enterprise/coderd/workspaceproxy_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"github.com/stretchr/testify/assert"
1616
"github.com/stretchr/testify/require"
1717

18+
"cdr.dev/slog/sloggers/slogtest"
1819
"github.com/coder/coder/v2/agent/agenttest"
1920
"github.com/coder/coder/v2/buildinfo"
2021
"github.com/coder/coder/v2/coderd/coderdtest"
@@ -1009,11 +1010,16 @@ func TestGetCryptoKeys(t *testing.T) {
10091010

10101011
ctx := testutil.Context(t, testutil.WaitMedium)
10111012
db, pubsub := dbtestutil.NewDB(t)
1013+
// IgnoreErrors is set here to avoid a test failure due to "used of closed network connection".
1014+
logger := slogtest.Make(t, &slogtest.Options{
1015+
IgnoreErrors: true,
1016+
})
10121017
cclient, _, api, _ := coderdenttest.NewWithAPI(t, &coderdenttest.Options{
10131018
Options: &coderdtest.Options{
10141019
Database: db,
10151020
Pubsub: pubsub,
10161021
IncludeProvisionerDaemon: true,
1022+
Logger: &logger,
10171023
},
10181024
LicenseOptions: &coderdenttest.LicenseOptions{
10191025
Features: license.Features{

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