@@ -562,7 +562,6 @@ func TestPatchActiveTemplateVersion(t *testing.T) {
562
562
version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , nil )
563
563
template := coderdtest .CreateTemplate (t , client , user .OrganizationID , version .ID )
564
564
version = coderdtest .UpdateTemplateVersion (t , client , user .OrganizationID , nil , template .ID )
565
- _ = coderdtest .AwaitTemplateVersionJobRunning (t , client , version .ID )
566
565
567
566
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
568
567
defer cancel ()
@@ -578,16 +577,13 @@ func TestPatchActiveTemplateVersion(t *testing.T) {
578
577
require .Equal (t , http .StatusPreconditionFailed , apiErr .StatusCode ())
579
578
})
580
579
581
- t .Run ("RunningBuild " , func (t * testing.T ) {
580
+ t .Run ("PendingBuild " , func (t * testing.T ) {
582
581
t .Parallel ()
583
- client := coderdtest .New (t , & coderdtest.Options {
584
- IncludeProvisionerDaemon : true ,
585
- })
582
+ client := coderdtest .New (t , nil )
586
583
user := coderdtest .CreateFirstUser (t , client )
587
584
version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , nil )
588
585
template := coderdtest .CreateTemplate (t , client , user .OrganizationID , version .ID )
589
586
version = coderdtest .UpdateTemplateVersion (t , client , user .OrganizationID , nil , template .ID )
590
- _ = coderdtest .AwaitTemplateVersionJobRunning (t , client , version .ID )
591
587
592
588
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
593
589
defer cancel ()
0 commit comments