@@ -38,7 +38,7 @@ func Test_handler_streamLogs_happy(t *testing.T) {
3838
3939 now := time .Now ()
4040
41- mockedClient .On ("FindContainer" , id ).Return (docker.Container {ID : id , Tty : false , Host : "localhost" , StartedAt : & now }, nil )
41+ mockedClient .On ("FindContainer" , id ).Return (docker.Container {ID : id , Tty : false , Host : "localhost" , StartedAt : now }, nil )
4242 mockedClient .On ("ContainerLogs" , mock .Anything , mock .Anything , now , docker .STDALL ).Return (io .NopCloser (bytes .NewReader (data )), nil ).
4343 Run (func (args mock.Arguments ) {
4444 go func () {
@@ -80,7 +80,7 @@ func Test_handler_streamLogs_happy_with_id(t *testing.T) {
8080
8181 started := time .Date (2020 , time .May , 13 , 18 , 55 , 37 , 772853839 , time .UTC )
8282
83- mockedClient .On ("FindContainer" , id ).Return (docker.Container {ID : id , Host : "localhost" , StartedAt : & started }, nil )
83+ mockedClient .On ("FindContainer" , id ).Return (docker.Container {ID : id , Host : "localhost" , StartedAt : started }, nil )
8484 mockedClient .On ("ContainerLogs" , mock .Anything , mock .Anything , started , docker .STDALL ).Return (io .NopCloser (bytes .NewReader (data )), nil ).
8585 Run (func (args mock.Arguments ) {
8686 go func () {
@@ -120,7 +120,7 @@ func Test_handler_streamLogs_happy_container_stopped(t *testing.T) {
120120
121121 started := time .Date (2020 , time .May , 13 , 18 , 55 , 37 , 772853839 , time .UTC )
122122 mockedClient := new (MockedClient )
123- mockedClient .On ("FindContainer" , id ).Return (docker.Container {ID : id , Host : "localhost" , StartedAt : & started }, nil )
123+ mockedClient .On ("FindContainer" , id ).Return (docker.Container {ID : id , Host : "localhost" , StartedAt : started }, nil )
124124 mockedClient .On ("ContainerLogs" , mock .Anything , id , started , docker .STDALL ).Return (io .NopCloser (strings .NewReader ("" )), io .EOF ).
125125 Run (func (args mock.Arguments ) {
126126 go func () {
@@ -189,7 +189,7 @@ func Test_handler_streamLogs_error_reading(t *testing.T) {
189189
190190 started := time .Date (2020 , time .May , 13 , 18 , 55 , 37 , 772853839 , time .UTC )
191191 mockedClient := new (MockedClient )
192- mockedClient .On ("FindContainer" , id ).Return (docker.Container {ID : id , Host : "localhost" , StartedAt : & started }, nil )
192+ mockedClient .On ("FindContainer" , id ).Return (docker.Container {ID : id , Host : "localhost" , StartedAt : started }, nil )
193193 mockedClient .On ("ContainerLogs" , mock .Anything , id , started , docker .STDALL ).Return (io .NopCloser (strings .NewReader ("" )), errors .New ("test error" )).
194194 Run (func (args mock.Arguments ) {
195195 go func () {
0 commit comments