Add environment variable to define the threshold

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2025-07-24 12:05:55 -07:00
parent 632fb0c89a
commit 4816383c0b
2 changed files with 42 additions and 24 deletions

View File

@@ -3,7 +3,6 @@ package daemon // import "github.com/docker/docker/integration/daemon"
import (
"bytes"
"io"
"os"
"runtime"
"testing"
@@ -28,7 +27,9 @@ func TestMigrateNativeSnapshotter(t *testing.T) {
func testMigrateSnapshotter(t *testing.T, graphdriver, snapshotter string) {
skip.If(t, runtime.GOOS != "linux")
skip.If(t, os.Getenv("TEST_INTEGRATION_USE_GRAPHDRIVER") == "")
t.Setenv("DOCKER_MIGRATE_SNAPSHOTTER_THRESHOLD", "200M")
t.Setenv("DOCKER_GRAPHDRIVER", "")
ctx := testutil.StartSpan(baseContext, t)
@@ -90,7 +91,9 @@ func testMigrateSnapshotter(t *testing.T, graphdriver, snapshotter string) {
func TestMigrateSaveLoad(t *testing.T) {
skip.If(t, runtime.GOOS != "linux")
skip.If(t, os.Getenv("TEST_INTEGRATION_USE_GRAPHDRIVER") == "")
t.Setenv("DOCKER_MIGRATE_SNAPSHOTTER_THRESHOLD", "200M")
t.Setenv("DOCKER_GRAPHDRIVER", "")
var (
ctx = testutil.StartSpan(baseContext, t)