Browse Source

improve tests

pull/169/head
aler9 5 years ago
parent
commit
fa365443fb
  1. 4
      main_test.go

4
main_test.go

@ -121,7 +121,7 @@ func testProgram(conf string) (*program, error) { @@ -121,7 +121,7 @@ func testProgram(conf string) (*program, error) {
func TestEnvironment(t *testing.T) {
// string
os.Setenv("RTSP_RUNONCONNECT", "testcmd")
os.Setenv("RTSP_RUNONCONNECT", "test=cmd")
defer os.Unsetenv("RTSP_RUNONCONNECT")
// int
@ -162,7 +162,7 @@ func TestEnvironment(t *testing.T) { @@ -162,7 +162,7 @@ func TestEnvironment(t *testing.T) {
require.NoError(t, err)
defer p.close()
require.Equal(t, "testcmd", p.conf.RunOnConnect)
require.Equal(t, "test=cmd", p.conf.RunOnConnect)
require.Equal(t, 8555, p.conf.RtspPort)

Loading…
Cancel
Save