Преглед изворни кода

Use constant for task runtime value

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn пре 7 година
родитељ
комит
2b7d34977e
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) {
 func makePlugin(repo, name string, constraints []string) func(*swarmtypes.Service) {
 	return func(s *swarmtypes.Service) {
 	return func(s *swarmtypes.Service) {
-		s.Spec.TaskTemplate.Runtime = "plugin"
+		s.Spec.TaskTemplate.Runtime = swarmtypes.RuntimePlugin
 		s.Spec.TaskTemplate.PluginSpec = &runtime.PluginSpec{
 		s.Spec.TaskTemplate.PluginSpec = &runtime.PluginSpec{
 			Name:   name,
 			Name:   name,
 			Remote: repo,
 			Remote: repo,