Created
January 13, 2020 15:06
-
-
Save JensRantil/41e0665fafdc7619b786f10ce3577033 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module github.com/JensRantil/yo | |
go 1.13 | |
require github.com/nats-io/nats-streaming-server v0.16.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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