First work on test for connection to CertStream
This commit is contained in:
parent
e4cc92e100
commit
0e1e003ab2
14
connectors_test.go
Normal file
14
connectors_test.go
Normal 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
10
main_test.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
os.Exit(m.Run())
|
||||
}
|
Loading…
Reference in a new issue