mirror of
https://github.com/status-im/consul.git
synced 2025-02-22 10:28:31 +00:00
Fix test running in non-bash shells
This commit is contained in:
parent
6da6e086ef
commit
dbaabb1dbc
@ -15,7 +15,7 @@ func TestMakeWatchHandler(t *testing.T) {
|
||||
t.Parallel()
|
||||
defer os.Remove("handler_out")
|
||||
defer os.Remove("handler_index_out")
|
||||
script := "echo $CONSUL_INDEX >> handler_index_out && cat >> handler_out"
|
||||
script := "bash -c 'echo $CONSUL_INDEX >> handler_index_out && cat >> handler_out'"
|
||||
handler := makeWatchHandler(os.Stderr, script)
|
||||
handler(100, []string{"foo", "bar", "baz"})
|
||||
raw, err := ioutil.ReadFile("handler_out")
|
||||
|
Loading…
x
Reference in New Issue
Block a user