diff options
author | Chris <ccbrown112@gmail.com> | 2017-08-18 14:21:01 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-08-18 12:21:01 -0700 |
commit | f720288c10c6de5794162053ba565ce090d4f9a3 (patch) | |
tree | 10a19962e44d495172ec8415488f007794115570 /plugin/rpcplugin/supervisor_test.go | |
parent | 42c6686602885ad04ae91ab33f82029a0455b3c7 (diff) | |
download | chat-f720288c10c6de5794162053ba565ce090d4f9a3.tar.gz chat-f720288c10c6de5794162053ba565ce090d4f9a3.tar.bz2 chat-f720288c10c6de5794162053ba565ce090d4f9a3.zip |
windows support for plugin ipc (#7251)
* windows support for plugin ipc
* unix test fix
Diffstat (limited to 'plugin/rpcplugin/supervisor_test.go')
-rw-r--r-- | plugin/rpcplugin/supervisor_test.go | 12 |
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) |