Skip to content

Commit

Permalink
chore: modify config test
Browse files Browse the repository at this point in the history
Signed-off-by: Guangyu Xu <GuangXu0602@gmail.com>
  • Loading branch information
billie60 committed Apr 18, 2024
1 parent cdb2fcc commit b7029cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ func TestLoadSnapshotterTOMLConfig(t *testing.T) {
EnableStargz: false,
EnableReferrerDetect: false,
},
PrefetchControllerConfig: PrefetchControllerConfig{
Enable: true,
PrefetchConfig: "http://localhost:1323/api/v1/prefetch/download",
},
CleanupOnClose: false,
SystemControllerConfig: SystemControllerConfig{
Enable: true,
Expand Down
4 changes: 2 additions & 2 deletions misc/snapshotter/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ daemon_mode = "dedicated"
cleanup_on_close = false

[prefetch]
enable = false
enable = true
get_prefetch_endpoint = "http://localhost:1323/api/v1/prefetch/download"

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

0 comments on commit b7029cc

Please sign in to comment.