Mike 1 rok temu
rodzic
commit
48aeda41ce
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      wire/encode_test.go

+ 2 - 2
wire/encode_test.go

@@ -198,7 +198,7 @@ func TestMarshal(t *testing.T) {
 				Val: []byte(`hello`),
 				Val: []byte(`hello`),
 			},
 			},
 			want: append(
 			want: append(
-				[]byte{0x05}, /* len prefix */
+				[]byte{0x05},                             /* len prefix */
 				[]byte{0x68, 0x65, 0x6c, 0x6c, 0x6f}...), /* slice val */
 				[]byte{0x68, 0x65, 0x6c, 0x6c, 0x6f}...), /* slice val */
 		},
 		},
 		{
 		{
@@ -220,7 +220,7 @@ func TestMarshal(t *testing.T) {
 				Val: []byte(`hello`),
 				Val: []byte(`hello`),
 			},
 			},
 			want: append(
 			want: append(
-				[]byte{0x00, 0x05}, /* len prefix */
+				[]byte{0x00, 0x05},                       /* len prefix */
 				[]byte{0x68, 0x65, 0x6c, 0x6c, 0x6f}...), /* slice val */
 				[]byte{0x68, 0x65, 0x6c, 0x6c, 0x6f}...), /* slice val */
 		},
 		},
 		{
 		{