Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23026d8

Browse files
committed
refactored mock request logger to fit current codebase
1 parent e93add2 commit 23026d8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

coderd/httpmw/mocks/mock_request_logger.go renamed to coderd/httpmw/loggermock/loggermock.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/provisionerjobs_internal_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/coder/coder/v2/coderd/database/dbtime"
2121
"github.com/coder/coder/v2/coderd/database/pubsub"
2222
"github.com/coder/coder/v2/coderd/httpmw"
23-
"github.com/coder/coder/v2/coderd/httpmw/mocks"
23+
"github.com/coder/coder/v2/coderd/httpmw/loggermock"
2424
"github.com/coder/coder/v2/codersdk"
2525
"github.com/coder/coder/v2/provisionersdk"
2626
"github.com/coder/coder/v2/testutil"
@@ -307,7 +307,7 @@ func Test_logFollower_EndOfLogs(t *testing.T) {
307307
JobStatus: database.ProvisionerJobStatusRunning,
308308
}
309309

310-
mockLogger := mocks.NewMockRequestLogger(ctrl)
310+
mockLogger := loggermock.NewMockRequestLogger(ctrl)
311311
mockLogger.EXPECT().WriteLog(gomock.Any(), http.StatusAccepted).Times(1)
312312
ctx = httpmw.WithRequestLogger(ctx, mockLogger)
313313

0 commit comments

Comments
 (0)