From f720288c10c6de5794162053ba565ce090d4f9a3 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 18 Aug 2017 14:21:01 -0500 Subject: windows support for plugin ipc (#7251) * windows support for plugin ipc * unix test fix --- plugin/rpcplugin/supervisor_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugin/rpcplugin/supervisor_test.go') 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) -- cgit v1.2.3-1-g7c22