From 58b60f8a465790964d0797821e413d7a4a81a6a2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 17 Jul 2018 20:41:25 +0200 Subject: [PATCH] Use constant for task runtime value Signed-off-by: Sebastiaan van Stijn Upstream-commit: 2b7d34977e72054d197a481a10addd773aa23ca4 Component: engine --- components/engine/integration/service/plugin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/integration/service/plugin_test.go b/components/engine/integration/service/plugin_test.go index 6c61825220..e476c2f1f4 100644 --- a/components/engine/integration/service/plugin_test.go +++ b/components/engine/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,