Example #1
0
func runServer(t *testing.T, auth taas.Type) *taas.Server {
	server, err := taas.NewServerWithPaths(auth, 20, "../bin/actool", "go")
	if err != nil {
		t.Fatalf("Could not start server: %v", err)
	}
	go serverHandler(t, server)
	return server
}
Example #2
0
func runServer(t *testing.T, auth taas.Type) *taas.Server {
	actool := testutils.GetValueFromEnvOrPanic("ACTOOL")
	gotool := testutils.GetValueFromEnvOrPanic("GO")
	server, err := taas.NewServerWithPaths(auth, 20, actool, gotool)
	if err != nil {
		t.Fatalf("Could not start server: %v", err)
	}
	go serverHandler(t, server)
	return server
}
Example #3
0
func runServer(t *testing.T, auth taas.Type) *taas.Server {
	actool := os.Getenv("ACTOOL")
	if actool == "" {
		panic("Cannot run test ACI server: ACTOOL env var is not specified")
	}
	gotool := os.Getenv("GO")
	if gotool == "" {
		panic("Cannot run test ACI server: GO env var is not specified")
	}
	server, err := taas.NewServerWithPaths(auth, 20, actool, gotool)
	if err != nil {
		t.Fatalf("Could not start server: %v", err)
	}
	go serverHandler(t, server)
	return server
}