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

Skip to content

Commit 660c2d6

Browse files
committed
fix: test build reason
1 parent a4a5511 commit 660c2d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/provisionerdserver/provisionerdserver_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,7 @@ func TestNotifications(t *testing.T) {
17991799
require.Contains(t, notifEnq.sent[0].targets, workspace.OrganizationID)
18001800
require.Contains(t, notifEnq.sent[0].targets, user.ID)
18011801
require.Equal(t, notifEnq.sent[0].labels["initiator"], "autobuild")
1802+
require.Equal(t, notifEnq.sent[0].labels["reason"], string(tc.buildReason))
18021803
} else {
18031804
require.Len(t, notifEnq.sent, 0)
18041805
}

0 commit comments

Comments
 (0)