mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
22 lines
452 B
Go
22 lines
452 B
Go
// Copyright 2015 Apcera Inc. All rights reserved.
|
|
|
|
package test
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestServerConfig(t *testing.T) {
|
|
srv, opts := RunServerWithConfig("./configs/override.conf")
|
|
defer srv.Shutdown()
|
|
|
|
c := createClientConn(t, opts.Host, opts.Port)
|
|
defer c.Close()
|
|
|
|
sinfo := checkInfoMsg(t, c)
|
|
if sinfo.MaxPayload != opts.MaxPayload {
|
|
t.Fatalf("Expected max_payload from server, got %d vs %d",
|
|
opts.MaxPayload, sinfo.MaxPayload)
|
|
}
|
|
}
|