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

Skip to content

Commit 42a1c69

Browse files
committed
fix: test self-initiated
1 parent 1852953 commit 42a1c69

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

coderd/provisionerdserver/provisionerdserver_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ func TestNotifications(t *testing.T) {
16961696
}
16971697
})
16981698

1699-
t.Run("Workspace autobuild failed", func(t *testing.T) {
1699+
t.Run("Workspace build failed", func(t *testing.T) {
17001700
t.Parallel()
17011701

17021702
tests := []struct {
@@ -1707,7 +1707,12 @@ func TestNotifications(t *testing.T) {
17071707
shouldDeleteWorkspace bool
17081708
}{
17091709
{
1710-
name: "initiated by autostart but failed",
1710+
name: "initiated by owner",
1711+
buildReason: database.BuildReasonInitiator,
1712+
shouldNotify: false,
1713+
},
1714+
{
1715+
name: "initiated by autostart",
17111716
buildReason: database.BuildReasonAutostart,
17121717
shouldNotify: true,
17131718
},

0 commit comments

Comments
 (0)