mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Change the base filesystem size in unit tests
This commit is contained in:
parent
c3f1bb3287
commit
48070274ee
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ func cleanupDevMapper() {
|
|||
|
||||
func init() {
|
||||
os.Setenv("TEST", "1")
|
||||
os.Setenv("DOCKER_LOOPBACK_DATA_SIZE", "209715200") // 200MB
|
||||
os.Setenv("DOCKER_LOOPBACK_META_SIZE", "104857600") // 100MB
|
||||
os.Setenv("DOCKER_BASE_FS_SIZE", "157286400") // 150MB
|
||||
|
||||
// Hack to run sys init during unit testing
|
||||
if selfPath := utils.SelfPath(); selfPath == "/sbin/init" || selfPath == "/.dockerinit" {
|
||||
|
|
Loading…
Add table
Reference in a new issue