cleanup tests

This commit is contained in:
aler9
2021-05-02 21:40:07 +02:00
committed by Alessandro Ros
parent 3ed4ef942a
commit 7c7ee3bb14
2 changed files with 5 additions and 5 deletions

View File

@@ -173,7 +173,7 @@ func TestServerPublishSetupPath(t *testing.T) {
} }
} }
func TestServerPublishSetupErrorDifferentPaths(t *testing.T) { func TestServerPublishErrorSetupDifferentPaths(t *testing.T) {
serverErr := make(chan error) serverErr := make(chan error)
s := &Server{ s := &Server{
@@ -262,7 +262,7 @@ func TestServerPublishSetupErrorDifferentPaths(t *testing.T) {
require.Equal(t, "invalid track path (test2stream/trackID=0)", err.Error()) require.Equal(t, "invalid track path (test2stream/trackID=0)", err.Error())
} }
func TestServerPublishSetupErrorTrackTwice(t *testing.T) { func TestServerPublishErrorSetupTrackTwice(t *testing.T) {
serverErr := make(chan error) serverErr := make(chan error)
s := &Server{ s := &Server{
@@ -366,7 +366,7 @@ func TestServerPublishSetupErrorTrackTwice(t *testing.T) {
require.Equal(t, "track 0 has already been setup", err.Error()) require.Equal(t, "track 0 has already been setup", err.Error())
} }
func TestServerPublishRecordErrorPartialTracks(t *testing.T) { func TestServerPublishErrorRecordPartialTracks(t *testing.T) {
serverErr := make(chan error) serverErr := make(chan error)
s := &Server{ s := &Server{

View File

@@ -116,7 +116,7 @@ func TestServerReadSetupPath(t *testing.T) {
} }
} }
func TestServerReadSetupErrorDifferentPaths(t *testing.T) { func TestServerReadErrorSetupDifferentPaths(t *testing.T) {
connClosed := make(chan struct{}) connClosed := make(chan struct{})
s := &Server{ s := &Server{
@@ -190,7 +190,7 @@ func TestServerReadSetupErrorDifferentPaths(t *testing.T) {
<-connClosed <-connClosed
} }
func TestServerReadSetupErrorTrackTwice(t *testing.T) { func TestServerReadErrorSetupTrackTwice(t *testing.T) {
connClosed := make(chan struct{}) connClosed := make(chan struct{})
s := &Server{ s := &Server{