chore(coderd/database/dbfake): fix pq test flake in TestStart_Starting (#11384)

This commit is contained in:
Cian Johnston 2024-01-03 12:27:50 +00:00 committed by GitHub
parent d74e7ca20f
commit 068e730046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ func (b WorkspaceBuildBuilder) Do() WorkspaceResponse {
FileID: uuid.New(),
Type: database.ProvisionerJobTypeWorkspaceBuild,
Input: payload,
Tags: nil,
Tags: map[string]string{},
TraceMetadata: pqtype.NullRawMessage{},
})
require.NoError(b.t, err, "insert job")
@ -192,7 +192,7 @@ func (b WorkspaceBuildBuilder) Do() WorkspaceResponse {
Valid: true,
},
Types: []database.ProvisionerType{database.ProvisionerTypeEcho},
Tags: nil,
Tags: []byte(`{"scope": "organization"}`),
})
require.NoError(b.t, err, "acquire starting job")
if j.ID == job.ID {