@@ -311,7 +311,8 @@ func Test_New_itShouldUseUnixDomainSocketIfUnixSocketSpecified(t *testing.T) {
311311
312312 f , err := New (Config {
313313 FluentNetwork : network ,
314- FluentSocketPath : socketFile })
314+ FluentSocketPath : socketFile ,
315+ })
315316 if err != nil {
316317 t .Error (err )
317318 return
@@ -324,7 +325,8 @@ func Test_New_itShouldUseUnixDomainSocketIfUnixSocketSpecified(t *testing.T) {
324325 network = "unixxxx"
325326 fUnknown , err := New (Config {
326327 FluentNetwork : network ,
327- FluentSocketPath : socketFile })
328+ FluentSocketPath : socketFile ,
329+ })
328330 if _ , ok := err .(* ErrUnknownNetwork ); ! ok {
329331 t .Errorf ("err type: %T" , err )
330332 }
@@ -350,12 +352,12 @@ func Test_MarshalAsMsgpack(t *testing.T) {
350352 f := & Fluent {Config : Config {}}
351353
352354 tag := "tag"
353- var data = map [string ]string {
355+ data : = map [string ]string {
354356 "foo" : "bar" ,
355- "hoge" : "hoge" }
357+ "hoge" : "hoge" ,
358+ }
356359 tm := time .Unix (1267867237 , 0 )
357360 result , err := f .EncodeData (tag , tm , data )
358-
359361 if err != nil {
360362 t .Error (err )
361363 }
@@ -383,7 +385,6 @@ func Test_SubSecondPrecision(t *testing.T) {
383385 encodedData , err := fluent .EncodeData ("tag" , timestamp , map [string ]string {
384386 "foo" : "bar" ,
385387 })
386-
387388 // Assert no encoding errors and that the timestamp has been encoded into
388389 // the message as expected.
389390 if err != nil {
@@ -402,12 +403,12 @@ func Test_SubSecondPrecision(t *testing.T) {
402403func Test_MarshalAsJSON (t * testing.T ) {
403404 f := & Fluent {Config : Config {MarshalAsJSON : true }}
404405
405- var data = map [string ]string {
406+ data : = map [string ]string {
406407 "foo" : "bar" ,
407- "hoge" : "hoge" }
408+ "hoge" : "hoge" ,
409+ }
408410 tm := time .Unix (1267867237 , 0 )
409411 result , err := f .EncodeData ("tag" , tm , data )
410-
411412 if err != nil {
412413 t .Error (err )
413414 }
0 commit comments