@@ -24,7 +24,7 @@ func TestQueue_append(t *testing.T) {
2424 // a queue with 8 bytes batches and only one batch can queued.
2525 q := newQueue (NewMetrics (prometheus .NewRegistry ()), log .NewNopLogger (), Config {
2626 BatchSize : 8 ,
27- Queue : QueueConfig {
27+ QueueConfig : QueueConfig {
2828 Capacity : 8 ,
2929 },
3030 })
@@ -61,7 +61,7 @@ func TestQueue_drain(t *testing.T) {
6161 // a queue with 8 bytes batches and only one batch can queued at any given time.
6262 q := newQueue (NewMetrics (prometheus .NewRegistry ()), log .NewNopLogger (), Config {
6363 BatchSize : 8 ,
64- Queue : QueueConfig {
64+ QueueConfig : QueueConfig {
6565 Capacity : 8 ,
6666 },
6767 })
@@ -83,7 +83,7 @@ func TestQueue_drain(t *testing.T) {
8383 q := newQueue (NewMetrics (prometheus .NewRegistry ()), log .NewNopLogger (), Config {
8484 BatchSize : 8 ,
8585 BatchWait : 10 * time .Second ,
86- Queue : QueueConfig {
86+ QueueConfig : QueueConfig {
8787 Capacity : 8 ,
8888 },
8989 })
@@ -106,7 +106,7 @@ func TestQueue_flushAndShutdown(t *testing.T) {
106106 // a queue with 8 bytes batches and only one batch can queued at any given time.
107107 q := newQueue (NewMetrics (prometheus .NewRegistry ()), log .NewNopLogger (), Config {
108108 BatchSize : 8 ,
109- Queue : QueueConfig {
109+ QueueConfig : QueueConfig {
110110 Capacity : 8 ,
111111 },
112112 })
@@ -144,7 +144,7 @@ func TestQueue_flushAndShutdown(t *testing.T) {
144144 // a queue with 8 bytes batches and only one batch can queued at any given time.
145145 q := newQueue (NewMetrics (prometheus .NewRegistry ()), log .NewNopLogger (), Config {
146146 BatchSize : 8 ,
147- Queue : QueueConfig {
147+ QueueConfig : QueueConfig {
148148 Capacity : 8 ,
149149 },
150150 })
0 commit comments