Skip to content

Commit

Permalink
fix(TestFolder): add file to check, otherwise checks the default inde…
Browse files Browse the repository at this point in the history
…x.html (#407)

Signed-off-by: Jose Ramon Mañes <[email protected]>
  • Loading branch information
tty47 authored May 30, 2024
1 parent fc126f1 commit 32b98ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/basic/folder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ func TestFolder(t *testing.T) {

// Create and commit the instance
web := assertCreateInstanceNginxWithVolumeOwner(t, "web")
err = web.AddFile("resources/html/index.html", "/usr/share/nginx/html/index.html", "0:0")
if err != nil {
t.Fatalf("Error adding file to '%v': %v", "web", err)
}

t.Cleanup(func() {
require.NoError(t, knuu.BatchDestroy(executor.Instance, web))
})

// Test logic

webIP, err := web.GetIP()
if err != nil {
t.Fatalf("Error getting IP '%v':", err)
Expand Down

0 comments on commit 32b98ab

Please sign in to comment.