github.com/jiasir/deis@v1.12.2/logger/drain/simple/drain_test.go (about) 1 package simple 2 3 import ( 4 "fmt" 5 "testing" 6 ) 7 8 func TestInvalidDrainUrl(t *testing.T) { 9 _, err := NewDrain("https://wwww.google.com") 10 if err == nil || err.Error() != fmt.Sprintf("Invalid drain url scheme: %s", "https") { 11 t.Error("Did not receive expected error message") 12 } 13 }