浏览代码

Merge pull request #37483 from thaJeztah/fix-nit-pick

Use constant for task runtime value
Sebastiaan van Stijn 7 年之前
父节点
当前提交
cc7cda1968
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      integration/service/plugin_test.go

+ 1 - 1
integration/service/plugin_test.go

@@ -107,7 +107,7 @@ func TestServicePlugin(t *testing.T) {
 
 func makePlugin(repo, name string, constraints []string) func(*swarmtypes.Service) {
 	return func(s *swarmtypes.Service) {
-		s.Spec.TaskTemplate.Runtime = "plugin"
+		s.Spec.TaskTemplate.Runtime = swarmtypes.RuntimePlugin
 		s.Spec.TaskTemplate.PluginSpec = &runtime.PluginSpec{
 			Name:   name,
 			Remote: repo,