瀏覽代碼

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 年之前
父節點
當前提交
279ddb31ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
-func WithStorageDriver(driver string) func(d *Daemon) {
+func WithStorageDriver(driver string) Option {
 	return func(d *Daemon) {
 		d.storageDriver = driver
 	}