Skip to content

Commit

Permalink
fix(create): add missing nil error check in Etag test
Browse files Browse the repository at this point in the history
  • Loading branch information
radhus committed Jan 10, 2025
1 parent 553f2f7 commit 4c8e1ae
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion internal/aiptest/create/etag.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ var etagPopulated = suite.Test{
Resource: scope.Resource,
Method: createMethod,
Parent: "parent",
}.Generate(f, "created", "_", ":=")
}.Generate(f, "created", "err", ":=")
f.P(ident.AssertNilError, "(t, err)")
f.P(ident.AssertCheck, "(t, created.Etag != \"\")")
return nil
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4c8e1ae

Please sign in to comment.