mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: remove dbfake.WorkspaceBuild in favor of builder pattern (#10814)
I'd like to convert dbfake into a builder pattern to prevent a proliferation of XXXWithYYY methods. This is one step of the way by removing the Non-builder function.
This commit is contained in:
@ -151,7 +151,7 @@ func TestSSH(t *testing.T) {
|
||||
pty.WriteLine("echo hell'o'")
|
||||
pty.ExpectMatchContext(ctx, "hello")
|
||||
|
||||
_ = dbfake.WorkspaceBuildBuilder(t, store, workspace).
|
||||
_ = dbfake.NewWorkspaceBuildBuilder(t, store, workspace).
|
||||
Seed(database.WorkspaceBuild{
|
||||
Transition: database.WorkspaceTransitionStop,
|
||||
BuildNumber: 2,
|
||||
@ -520,7 +520,7 @@ func TestSSH(t *testing.T) {
|
||||
err = session.Shell()
|
||||
require.NoError(t, err)
|
||||
|
||||
_ = dbfake.WorkspaceBuildBuilder(t, store, workspace).
|
||||
_ = dbfake.NewWorkspaceBuildBuilder(t, store, workspace).
|
||||
Seed(database.WorkspaceBuild{
|
||||
Transition: database.WorkspaceTransitionStop,
|
||||
BuildNumber: 2,
|
||||
|
Reference in New Issue
Block a user