Exemple #1
0
func setup() {
	testcontext = data.NewContext()
	testcontext.IsTesting = true
	testcontext.QueueServerTcpAddr = &net.TCPAddr{IP: net.ParseIP("127.0.0.1"), Port: int(9786)}
	log.Printf("About to start the listener\n")
	go StartServer(testcontext)
}
Exemple #2
0
func testContext() *data.Context {
	context := data.NewContext()
	context.IsTesting = true
	context.QMgrPort = 4001
	return context
}