Skip to content

Commit

Permalink
test halt
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Apr 6, 2017
1 parent 3b89bff commit 162e95e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion signals_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func TestSignalsFiFo(t *testing.T) {
}
expect(t, "Unknown signal: unknown", res.Err)

if err := GetJSON(filepath.Join(sdir, "immortal.sock"), "/signal/x", res); err != nil {
if err := GetJSON(filepath.Join(sdir, "immortal.sock"), "/signal/halt", res); err != nil {
t.Fatal(err)
}
}
Expand Down
2 changes: 1 addition & 1 deletion supervise_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func TestSuperviseWait(t *testing.T) {
}()
time.Sleep(2 * time.Second)
status := &Status{}
GetJSON(filepath.Join(sdir, "immortal.sock"), "/signal/exit", status)
GetJSON(filepath.Join(sdir, "immortal.sock"), "/signal/halt", status)
wg.Wait()
expect(t, true, d.count >= 2)
}

0 comments on commit 162e95e

Please sign in to comment.