Permalink
Browse files

test fix

  • Loading branch information...
hunterlong committed Nov 7, 2018
1 parent 8c0c4f4 commit b03bb66089602d18ddb78afca46c764b8af4e6c3
Showing with 11 additions and 2 deletions.
  1. +1 −0 Makefile
  2. +5 −0 notifiers/command.go
  3. +5 −2 source/tmpl/messages.html
View
@@ -224,6 +224,7 @@ clean:
rm -rf utils/{logs,assets,plugins,statup.db,config.yml,.sass-cache,*.log}
rm -rf dev/test/cypress/videos
rm -f coverage.* sass
rm -f source/rice-box.go
find . -name "*.out" -type f -delete
find . -name "*.cpu" -type f -delete
find . -name "*.mem" -type f -delete
View
@@ -16,6 +16,7 @@
package notifiers
import (
"errors"
"github.com/hunterlong/statup/core/notifier"
"github.com/hunterlong/statup/types"
"github.com/hunterlong/statup/utils"
@@ -89,6 +90,10 @@ func runCommand(app, cmd string) (string, string, error) {
return "", "", err
}
if errStdout != nil || errStderr != nil {
return "", "", errors.New("failed to capture stdout or stderr")
}
outStr, errStr := string(stdout), string(stderr)
return outStr, errStr, err
}
@@ -2,6 +2,7 @@
{{define "content"}}
<div class="container col-md-7 col-sm-12 mt-md-5 bg-light">
{{template "nav"}}
{{if .}}
<div class="col-12">
<h3>Messages</h3>
<table class="table table-striped">
@@ -29,11 +30,13 @@ <h3>Messages</h3>
{{end}}
</tbody>
</table>
</div>
{{end}}
<div class="col-12">
<h3>Create Message</h3>
{{template "form_message" NewMessage}}
</div>
</div>
</div>
{{end}}
{{define "extra_css"}}

0 comments on commit b03bb66

Please sign in to comment.