From 3692ba772de161aaeb82a3e730249b322152b587 Mon Sep 17 00:00:00 2001 From: Saxon Date: Wed, 8 May 2019 16:57:58 +0930 Subject: [PATCH] protocol/rtp/client.go: removed dummyLogger as not required anymore. --- protocol/rtp/client_test.go | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/protocol/rtp/client_test.go b/protocol/rtp/client_test.go index 55fef74c..39810fef 100644 --- a/protocol/rtp/client_test.go +++ b/protocol/rtp/client_test.go @@ -34,38 +34,8 @@ import ( "io" "net" "testing" - - "bitbucket.org/ausocean/utils/logger" ) -// dummyLogger will allow logging to be done by the testing pkg. -type dummyLogger testing.T - -func (dl *dummyLogger) log(lvl int8, msg string, args ...interface{}) { - var l string - switch lvl { - case logger.Warning: - l = "warning" - case logger.Debug: - l = "debug" - case logger.Info: - l = "info" - case logger.Error: - l = "error" - case logger.Fatal: - l = "fatal" - } - msg = l + ": " + msg - for i := 0; i < len(args); i++ { - msg += " %v" - } - if len(args) == 0 { - dl.Log(msg + "\n") - return - } - dl.Logf(msg+"\n", args...) -} - // TestReceive checks that the Client can correctly receive RTP packets and // perform a specificed operation on the packets before storing in the ringBuffer. func TestReceive(t *testing.T) {