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

Commit3f79022

Browse files
authored
test: ignore log errors (#14892)
Fixes:#14891
1 parent35a5475 commit3f79022

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎coderd/insights_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestDeploymentInsights(t *testing.T) {
4646
require.NoError(t,err)
4747

4848
db,ps:=dbtestutil.NewDB(t,dbtestutil.WithDumpOnFailure())
49-
logger:=slogtest.Make(t,nil)
49+
logger:=slogtest.Make(t,&slogtest.Options{IgnoreErrors:false}).Leveled(slog.LevelDebug)
5050
rollupEvents:=make(chan dbrollup.Event)
5151
client:=coderdtest.New(t,&coderdtest.Options{
5252
Database:db,
@@ -127,7 +127,7 @@ func TestUserActivityInsights_SanityCheck(t *testing.T) {
127127
t.Parallel()
128128

129129
db,ps:=dbtestutil.NewDB(t)
130-
logger:=slogtest.Make(t,nil)
130+
logger:=slogtest.Make(t,&slogtest.Options{IgnoreErrors:false}).Leveled(slog.LevelDebug)
131131
client:=coderdtest.New(t,&coderdtest.Options{
132132
Database:db,
133133
Pubsub:ps,
@@ -225,7 +225,7 @@ func TestUserLatencyInsights(t *testing.T) {
225225
t.Parallel()
226226

227227
db,ps:=dbtestutil.NewDB(t)
228-
logger:=slogtest.Make(t,&slogtest.Options{IgnoreErrors:true})
228+
logger:=slogtest.Make(t,&slogtest.Options{IgnoreErrors:false}).Leveled(slog.LevelDebug)
229229
client:=coderdtest.New(t,&coderdtest.Options{
230230
Database:db,
231231
Pubsub:ps,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp