windows support for plugin ipc (#7251)

* windows support for plugin ipc

* unix test fix
Этот коммит содержится в:
Chris
2017-08-18 14:21:01 -05:00
коммит произвёл Christopher Speller
родитель 42c6686602
Коммит f720288c10
5 изменённых файлов: 650 добавлений и 16 удалений

Просмотреть файл

@@ -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)