We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentde2dcf3 commitec9f677Copy full SHA for ec9f677
coderd/templateversions_test.go
@@ -471,14 +471,13 @@ func TestPostTemplateVersionsByOrganization(t *testing.T) {
471
pj,err:=store.GetProvisionerJobByID(ctx,tv.Job.ID)
472
require.NoError(t,err)
473
require.EqualValues(t,tt.wantTags,pj.Tags)
474
+// Also assert that we get the expected information back from the API endpoint
475
+require.Zero(t,tv.MatchedProvisioners.Count)
476
+require.Zero(t,tv.MatchedProvisioners.Available)
477
+require.Zero(t,tv.MatchedProvisioners.MostRecentlySeen.Time)
478
}else {
479
require.ErrorContains(t,err,tt.expectError)
480
}
-
-// Also assert that we get the expected information back from the API endpoint
-require.Zero(t,tv.MatchedProvisioners.Count)
-require.Zero(t,tv.MatchedProvisioners.Available)
481
-require.Zero(t,tv.MatchedProvisioners.MostRecentlySeen.Time)
482
})
483
484