Skip to content

Commit

Permalink
fix test assuming 3 results instead of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
danslo committed Jan 10, 2025
1 parent bf83629 commit 5799d58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Binary file added find
Binary file not shown.
5 changes: 1 addition & 4 deletions store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ func TestDiscoverStores(t *testing.T) {
os.Setenv("HOME", fixtureBase+"/discovery")
stores := DiscoverStores()

assert.Len(t, stores, 3)
assert.Len(t, stores, 2)

assert.Equal(t, "WooCommerce", stores[0].Platform.Name())
assert.Contains(t, stores[0].DocRoot, "discovery/applications/123456789/public_html")

assert.Equal(t, "Magento 2", stores[1].Platform.Name())
assert.Contains(t, stores[1].DocRoot, "discovery/sansec.store")

assert.Equal(t, "Magento 2", stores[2].Platform.Name())
assert.Contains(t, stores[2].DocRoot, "discovery/sansec.store")
}

func TestDiscoverStoresEmpty(t *testing.T) {
Expand Down

0 comments on commit 5799d58

Please sign in to comment.