Skip to content

Commit c56714c

Browse files
committed
chore: add failing test case
1 parent 0a3afed commit c56714c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

coderd/provisionerdserver/provisionerdserver_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,6 +2794,20 @@ func TestCompleteJob(t *testing.T) {
27942794
},
27952795
expected: true,
27962796
},
2797+
{
2798+
name: "non-existing app",
2799+
input: &proto.CompletedJob_WorkspaceBuild{
2800+
AiTasks: []*sdkproto.AITask{
2801+
{
2802+
Id: uuid.NewString(),
2803+
SidebarApp: &sdkproto.AITaskSidebarApp{
2804+
Id: uuid.NewString(), // Non-existing app ID.
2805+
},
2806+
},
2807+
},
2808+
},
2809+
expected: false,
2810+
},
27972811
} {
27982812
t.Run(tc.name, func(t *testing.T) {
27992813
t.Parallel()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy