windows support for plugin ipc (#7251)
* windows support for plugin ipc * unix test fix
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
42c6686602
Коммит
f720288c10
@@ -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)
|
||||
|
||||
Ссылка в новой задаче
Block a user