Skip to content

Commit b7029cc

Browse files
committed
chore: modify config test
Signed-off-by: Guangyu Xu <GuangXu0602@gmail.com>
1 parent cdb2fcc commit b7029cc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config/config_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ func TestLoadSnapshotterTOMLConfig(t *testing.T) {
3131
EnableStargz: false,
3232
EnableReferrerDetect: false,
3333
},
34+
PrefetchControllerConfig: PrefetchControllerConfig{
35+
Enable: true,
36+
PrefetchConfig: "http://localhost:1323/api/v1/prefetch/download",
37+
},
3438
CleanupOnClose: false,
3539
SystemControllerConfig: SystemControllerConfig{
3640
Enable: true,

misc/snapshotter/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ daemon_mode = "dedicated"
1010
cleanup_on_close = false
1111

1212
[prefetch]
13-
enable = false
13+
enable = true
1414
get_prefetch_endpoint = "http://localhost:1323/api/v1/prefetch/download"
1515

1616
[system]
@@ -136,4 +136,4 @@ max_concurrent_proc = 0
136136
# - "image_block": generate a raw block disk image with tarfs for an image
137137
# - "layer_block_with_verity": generate a raw block disk image with tarfs for a layer with dm-verity info
138138
# - "image_block_with_verity": generate a raw block disk image with tarfs for an image with dm-verity info
139-
export_mode = ""
139+
export_mode = ""

0 commit comments

Comments
 (0)