@@ -3615,7 +3615,6 @@ func TestGetPresetsBackoff(t *testing.T) {
3615
3615
backoff := backoffs [0 ]
3616
3616
require .Equal (t , backoff .TemplateVersionID , tmpl .ActiveVersionID )
3617
3617
require .Equal (t , backoff .PresetID , tmplV1 .preset .ID )
3618
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3619
3618
require .Equal (t , int32 (1 ), backoff .NumFailed )
3620
3619
})
3621
3620
@@ -3644,7 +3643,6 @@ func TestGetPresetsBackoff(t *testing.T) {
3644
3643
backoff := backoffs [0 ]
3645
3644
require .Equal (t , backoff .TemplateVersionID , tmpl .ActiveVersionID )
3646
3645
require .Equal (t , backoff .PresetID , tmplV1 .preset .ID )
3647
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3648
3646
require .Equal (t , int32 (3 ), backoff .NumFailed )
3649
3647
})
3650
3648
@@ -3676,7 +3674,6 @@ func TestGetPresetsBackoff(t *testing.T) {
3676
3674
backoff := backoffs [0 ]
3677
3675
require .Equal (t , backoff .TemplateVersionID , tmpl .ActiveVersionID )
3678
3676
require .Equal (t , backoff .PresetID , tmplV2 .preset .ID )
3679
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3680
3677
require .Equal (t , int32 (2 ), backoff .NumFailed )
3681
3678
})
3682
3679
@@ -3708,14 +3705,12 @@ func TestGetPresetsBackoff(t *testing.T) {
3708
3705
backoff := findBackoffByTmplVersionId (backoffs , tmpl1 .ActiveVersionID )
3709
3706
require .Equal (t , backoff .TemplateVersionID , tmpl1 .ActiveVersionID )
3710
3707
require .Equal (t , backoff .PresetID , tmpl1V1 .preset .ID )
3711
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3712
3708
require .Equal (t , int32 (1 ), backoff .NumFailed )
3713
3709
}
3714
3710
{
3715
3711
backoff := findBackoffByTmplVersionId (backoffs , tmpl2 .ActiveVersionID )
3716
3712
require .Equal (t , backoff .TemplateVersionID , tmpl2 .ActiveVersionID )
3717
3713
require .Equal (t , backoff .PresetID , tmpl2V1 .preset .ID )
3718
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3719
3714
require .Equal (t , int32 (1 ), backoff .NumFailed )
3720
3715
}
3721
3716
})
@@ -3758,21 +3753,18 @@ func TestGetPresetsBackoff(t *testing.T) {
3758
3753
backoff := findBackoffByTmplVersionId (backoffs , tmpl1 .ActiveVersionID )
3759
3754
require .Equal (t , backoff .TemplateVersionID , tmpl1 .ActiveVersionID )
3760
3755
require .Equal (t , backoff .PresetID , tmpl1V1 .preset .ID )
3761
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3762
3756
require .Equal (t , int32 (1 ), backoff .NumFailed )
3763
3757
}
3764
3758
{
3765
3759
backoff := findBackoffByTmplVersionId (backoffs , tmpl2 .ActiveVersionID )
3766
3760
require .Equal (t , backoff .TemplateVersionID , tmpl2 .ActiveVersionID )
3767
3761
require .Equal (t , backoff .PresetID , tmpl2V1 .preset .ID )
3768
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3769
3762
require .Equal (t , int32 (2 ), backoff .NumFailed )
3770
3763
}
3771
3764
{
3772
3765
backoff := findBackoffByTmplVersionId (backoffs , tmpl3 .ActiveVersionID )
3773
3766
require .Equal (t , backoff .TemplateVersionID , tmpl3 .ActiveVersionID )
3774
3767
require .Equal (t , backoff .PresetID , tmpl3V2 .preset .ID )
3775
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3776
3768
require .Equal (t , int32 (3 ), backoff .NumFailed )
3777
3769
}
3778
3770
})
@@ -3931,7 +3923,6 @@ func TestGetPresetsBackoff(t *testing.T) {
3931
3923
backoff := backoffs [0 ]
3932
3924
require .Equal (t , backoff .TemplateVersionID , tmpl1 .ActiveVersionID )
3933
3925
require .Equal (t , backoff .PresetID , tmpl1V1 .preset .ID )
3934
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3935
3926
require .Equal (t , int32 (1 ), backoff .NumFailed )
3936
3927
}
3937
3928
})
@@ -3982,7 +3973,6 @@ func TestGetPresetsBackoff(t *testing.T) {
3982
3973
backoff := backoffs [0 ]
3983
3974
require .Equal (t , backoff .TemplateVersionID , tmpl1 .ActiveVersionID )
3984
3975
require .Equal (t , backoff .PresetID , tmpl1V1 .preset .ID )
3985
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
3986
3976
require .Equal (t , int32 (2 ), backoff .NumFailed )
3987
3977
}
3988
3978
})
@@ -4037,7 +4027,6 @@ func TestGetPresetsBackoff(t *testing.T) {
4037
4027
backoff := backoffs [0 ]
4038
4028
require .Equal (t , backoff .TemplateVersionID , tmpl1 .ActiveVersionID )
4039
4029
require .Equal (t , backoff .PresetID , tmpl1V1 .preset .ID )
4040
- require .Equal (t , database .ProvisionerJobStatusFailed , backoff .LatestBuildStatus )
4041
4030
require .Equal (t , int32 (5 ), backoff .NumFailed )
4042
4031
// make sure LastBuildAt is equal to latest failed build timestamp
4043
4032
require .Equal (t , 0 , now .Compare (backoff .LastBuildAt .(time.Time )))
0 commit comments