Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
SKevo18 committed Sep 16, 2024
1 parent c49982c commit 65858d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion magento2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestGetMagentoVersionWithoutSystemPackages(t *testing.T) {
}

func TestGetMagentoBaseURLsFromConfigNilCtx(t *testing.T) {
baseURLs, err := m2store.BaseURLs(nil, fixtureBase + "magento2")
baseURLs, err := m2store.BaseURLs(nil, fixtureBase+"magento2")

Check failure on line 66 in magento2_test.go

View workflow job for this annotation

GitHub Actions / lint

SA1012: do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to use (staticcheck)
assert.Nil(t, err)
assert.ElementsMatch(t, []string{"https://sansec.io/", "https://api.sansec.io/"}, baseURLs)
}
2 changes: 1 addition & 1 deletion opencart4_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestOpenCartConfig(t *testing.T) {

func TestOpenCartURL(t *testing.T) {
oc4 := OpenCart4{}
urls, err := oc4.BaseURLs(nil, fixtureBase + "opencart4")
urls, err := oc4.BaseURLs(nil, fixtureBase+"opencart4")

Check failure on line 17 in opencart4_config_test.go

View workflow job for this annotation

GitHub Actions / lint

SA1012: do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to use (staticcheck)
assert.NoError(t, err)
assert.NotEmpty(t, urls)
assert.Equal(t, "http://sansec.io/", urls[0])
Expand Down

0 comments on commit 65858d5

Please sign in to comment.