First work on test for connection to CertStream

This commit is contained in:
Christopher Talib 2020-01-26 17:27:40 +01:00
parent e4cc92e100
commit 0e1e003ab2
2 changed files with 24 additions and 0 deletions

14
connectors_test.go Normal file
View file

@ -0,0 +1,14 @@
package main
import (
"testing"
"gitlab.dcso.lolcat/LABS/styx/broker"
)
func TestKafkaConnection(t *testing.T) {
_, err := broker.SetUpKafkaConnecter()
if err != nil {
t.Fail()
}
}

10
main_test.go Normal file
View file

@ -0,0 +1,10 @@
package main
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
os.Exit(m.Run())
}