Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit82803da

Browse files
committed
fix failing test
1 parent8b6c4de commit82803da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎codersdk/toolsdk/toolsdk_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,10 @@ func TestTools(t *testing.T) {
288288
ctx=toolsdk.WithClient(ctx,client)
289289

290290
// Create a new template version for use here.
291-
tv:=dbfake.TemplateVersion(t,store).SkipCreateTemplate().Do()
291+
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()
292295

293296
// We're going to re-use the pre-existing template version
294297
_,err:=testTool(ctx,t,toolsdk.CreateTemplate,map[string]any{
@@ -342,7 +345,7 @@ func TestMain(m *testing.M) {
342345
}
343346
}
344347

345-
iflen(untested)>0 {
348+
iflen(untested)>0&&code==0{
346349
println("The following tools were not tested:")
347350
for_,tool:=rangeuntested {
348351
println(" - "+tool)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp