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 parent8b6c4de commit82803daCopy full SHA for 82803da
codersdk/toolsdk/toolsdk_test.go
@@ -288,7 +288,10 @@ func TestTools(t *testing.T) {
288
ctx=toolsdk.WithClient(ctx,client)
289
290
// Create a new template version for use here.
291
-tv:=dbfake.TemplateVersion(t,store).SkipCreateTemplate().Do()
+tv:=dbfake.TemplateVersion(t,store).
292
+// nolint:gocritic // This is in a test package and does not end up in the build
293
+Seed(database.TemplateVersion{OrganizationID:owner.OrganizationID,CreatedBy:owner.UserID}).
294
+SkipCreateTemplate().Do()
295
296
// We're going to re-use the pre-existing template version
297
_,err:=testTool(ctx,t,toolsdk.CreateTemplate,map[string]any{
@@ -342,7 +345,7 @@ func TestMain(m *testing.M) {
342
345
}
343
346
344
347
-iflen(untested)>0 {
348
+iflen(untested)>0&&code==0{
349
println("The following tools were not tested:")
350
for_,tool:=rangeuntested {
351
println(" - "+tool)