From c37f9008b61d9d3265b1103ee5e4801c1050c1a7 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 8 Nov 2016 14:54:12 -0800 Subject: [PATCH] gofmt simplify --- utils/networking_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/networking_test.go b/utils/networking_test.go index fed6d9d..a47a113 100644 --- a/utils/networking_test.go +++ b/utils/networking_test.go @@ -35,9 +35,9 @@ func TestSendRicochetPacket(t *testing.T) { func TestSendRicochetPacket_Invalid(t *testing.T) { rni := RicochetNetwork{} invalidPackets := []RicochetData{ - RicochetData{-1, []byte{}}, - RicochetData{65536, []byte{}}, - RicochetData{0, make([]byte, 65532)}, + {-1, []byte{}}, + {65536, []byte{}}, + {0, make([]byte, 65532)}, } for _, td := range invalidPackets { @@ -87,11 +87,11 @@ func TestRecvRicochetPacket(t *testing.T) { func TestRecvRicochetPacket_Invalid(t *testing.T) { rni := RicochetNetwork{} invalidPackets := [][]byte{ - []byte{0x00, 0x00, 0x00, 0x00}, - []byte{0x00, 0x03, 0x00, 0x00}, - []byte{0xff}, - []byte{0x00, 0x06, 0x00, 0x00, 0x00}, - []byte{}, + {0x00, 0x00, 0x00, 0x00}, + {0x00, 0x03, 0x00, 0x00}, + {0xff}, + {0x00, 0x06, 0x00, 0x00, 0x00}, + {}, } for _, td := range invalidPackets {