Skip to content

Commit

Permalink
fix: handle error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Jan 31, 2023
1 parent c1dad88 commit 4eecc05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/testcontainersdocker/docker_host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ func TestInAContainer(t *testing.T) {
tmpDir := t.TempDir()

f := filepath.Join(tmpDir, dockerenvName)
os.Create(f)

_, err := os.Create(f)
assert.NoError(t, err)
assert.True(t, inAContainer(f))
})
}

0 comments on commit 4eecc05

Please sign in to comment.