lbry.go/util/slack_test.go
Niko Storni bf7b7c0ca6
move code to the right place
remove unused code
expand slack test
fix formatting
2018-07-12 08:24:43 -04:00

16 lines
342 B
Go

package util
import (
"os"
"testing"
)
func TestSendToSlack(t *testing.T) {
slackToken := os.Getenv("SLACK_TOKEN")
if slackToken == "" {
t.Error("A slack token was not provided")
}
InitSlack(slackToken)
SendToSlackInfo("This is a test :) Working %.2f%%", 1.01*100)
SendToSlackError("This is a test :) Working %.2f%%", 0.01*100)
}