Skip to content

Instantly share code, notes, and snippets.

@JensRantil
Created January 13, 2020 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JensRantil/41e0665fafdc7619b786f10ce3577033 to your computer and use it in GitHub Desktop.
Save JensRantil/41e0665fafdc7619b786f10ce3577033 to your computer and use it in GitHub Desktop.
module github.com/JensRantil/yo
go 1.13
require github.com/nats-io/nats-streaming-server v0.16.2
package main
import (
"flag"
"testing"
stand "github.com/nats-io/nats-streaming-server/server"
)
const testClusterName = "test-cluster"
func init() {
flag.Parse()
}
func TestSingleSystemTest(t *testing.T) {
s, err := stand.RunServer(testClusterName)
if err != nil {
t.Fatal(err)
}
defer s.Shutdown()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment