summaryrefslogtreecommitdiffstats
path: root/plugin/rpcplugin/supervisor_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/rpcplugin/supervisor_test.go')
-rw-r--r--plugin/rpcplugin/supervisor_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin/rpcplugin/supervisor_test.go b/plugin/rpcplugin/supervisor_test.go
index 1d046bf82..438ebe02a 100644
--- a/plugin/rpcplugin/supervisor_test.go
+++ b/plugin/rpcplugin/supervisor_test.go
@@ -18,7 +18,7 @@ func TestSupervisor(t *testing.T) {
require.NoError(t, err)
defer os.RemoveAll(dir)
- backend := filepath.Join(dir, "backend")
+ backend := filepath.Join(dir, "backend.exe")
compileGo(t, `
package main
@@ -42,7 +42,7 @@ func TestSupervisor(t *testing.T) {
}
`, backend)
- ioutil.WriteFile(filepath.Join(dir, "plugin.json"), []byte(`{"id": "foo", "backend": {"executable": "backend"}}`), 0600)
+ ioutil.WriteFile(filepath.Join(dir, "plugin.json"), []byte(`{"id": "foo", "backend": {"executable": "backend.exe"}}`), 0600)
bundle := plugin.BundleInfoForPath(dir)
supervisor, err := SupervisorProvider(bundle)
@@ -58,7 +58,7 @@ func TestSupervisor_StartTimeout(t *testing.T) {
require.NoError(t, err)
defer os.RemoveAll(dir)
- backend := filepath.Join(dir, "backend")
+ backend := filepath.Join(dir, "backend.exe")
compileGo(t, `
package main
@@ -68,7 +68,7 @@ func TestSupervisor_StartTimeout(t *testing.T) {
}
`, backend)
- ioutil.WriteFile(filepath.Join(dir, "plugin.json"), []byte(`{"id": "foo", "backend": {"executable": "backend"}}`), 0600)
+ ioutil.WriteFile(filepath.Join(dir, "plugin.json"), []byte(`{"id": "foo", "backend": {"executable": "backend.exe"}}`), 0600)
bundle := plugin.BundleInfoForPath(dir)
supervisor, err := SupervisorProvider(bundle)
@@ -82,7 +82,7 @@ func TestSupervisor_PluginCrash(t *testing.T) {
require.NoError(t, err)
defer os.RemoveAll(dir)
- backend := filepath.Join(dir, "backend")
+ backend := filepath.Join(dir, "backend.exe")
compileGo(t, `
package main
@@ -109,7 +109,7 @@ func TestSupervisor_PluginCrash(t *testing.T) {
}
`, backend)
- ioutil.WriteFile(filepath.Join(dir, "plugin.json"), []byte(`{"id": "foo", "backend": {"executable": "backend"}}`), 0600)
+ ioutil.WriteFile(filepath.Join(dir, "plugin.json"), []byte(`{"id": "foo", "backend": {"executable": "backend.exe"}}`), 0600)
bundle := plugin.BundleInfoForPath(dir)
supervisor, err := SupervisorProvider(bundle)