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

Skip to content

Commit 068e730

Browse files
authored
chore(coderd/database/dbfake): fix pq test flake in TestStart_Starting (coder#11384)
1 parent d74e7ca commit 068e730

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/database/dbfake/dbfake.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (b WorkspaceBuildBuilder) Do() WorkspaceResponse {
173173
FileID: uuid.New(),
174174
Type: database.ProvisionerJobTypeWorkspaceBuild,
175175
Input: payload,
176-
Tags: nil,
176+
Tags: map[string]string{},
177177
TraceMetadata: pqtype.NullRawMessage{},
178178
})
179179
require.NoError(b.t, err, "insert job")
@@ -192,7 +192,7 @@ func (b WorkspaceBuildBuilder) Do() WorkspaceResponse {
192192
Valid: true,
193193
},
194194
Types: []database.ProvisionerType{database.ProvisionerTypeEcho},
195-
Tags: nil,
195+
Tags: []byte(`{"scope": "organization"}`),
196196
})
197197
require.NoError(b.t, err, "acquire starting job")
198198
if j.ID == job.ID {

0 commit comments

Comments
 (0)