Browse Source

testutil: update WithStorageDriver to use daemon.Option as return type

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 năm trước cách đây
mục cha
commit
279ddb31ef
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      testutil/daemon/ops.go

+ 1 - 1
testutil/daemon/ops.go

@@ -85,7 +85,7 @@ func WithEnvironment(e environment.Execution) Option {
 }
 }
 
 
 // WithStorageDriver sets store driver option
 // WithStorageDriver sets store driver option
-func WithStorageDriver(driver string) func(d *Daemon) {
+func WithStorageDriver(driver string) Option {
 	return func(d *Daemon) {
 	return func(d *Daemon) {
 		d.storageDriver = driver
 		d.storageDriver = driver
 	}
 	}