@@ -138,11 +138,6 @@ func TestExporter_makeReq(t *testing.T) {
138138 },
139139 },
140140 },
141- },
142- },
143- {
144- Name : monitoring .MetricProjectPath ("proj-id" ),
145- TimeSeries : []* monitoringpb.TimeSeries {
146141 {
147142 Metric : & metricpb.Metric {
148143 Type : "custom.googleapis.com/opencensus/example.com/views/testview" ,
@@ -218,11 +213,6 @@ func TestExporter_makeReq(t *testing.T) {
218213 },
219214 },
220215 },
221- },
222- },
223- {
224- Name : monitoring .MetricProjectPath ("proj-id" ),
225- TimeSeries : []* monitoringpb.TimeSeries {
226216 {
227217 Metric : & metricpb.Metric {
228218 Type : "external.googleapis.com/example.com/views/testview" ,
@@ -293,11 +283,6 @@ func TestExporter_makeReq(t *testing.T) {
293283 },
294284 },
295285 },
296- },
297- },
298- {
299- Name : monitoring .MetricProjectPath ("proj-id" ),
300- TimeSeries : []* monitoringpb.TimeSeries {
301286 {
302287 Metric : & metricpb.Metric {
303288 Type : "custom.googleapis.com/opencensus/example.com/views/testview" ,
@@ -364,11 +349,6 @@ func TestExporter_makeReq(t *testing.T) {
364349 },
365350 },
366351 },
367- },
368- },
369- {
370- Name : monitoring .MetricProjectPath ("proj-id" ),
371- TimeSeries : []* monitoringpb.TimeSeries {
372352 {
373353 Metric : & metricpb.Metric {
374354 Type : "custom.googleapis.com/opencensus/lasttestview" ,
@@ -542,21 +522,21 @@ func TestExporter_makeReq_batching(t *testing.T) {
542522 name : "4 vds; 3 limit" ,
543523 iter : 2 ,
544524 limit : 3 ,
545- wantReqs : 4 ,
525+ wantReqs : 3 ,
546526 wantTotal : 4 ,
547527 },
548528 {
549529 name : "4 vds; 4 limit" ,
550530 iter : 2 ,
551531 limit : 4 ,
552- wantReqs : 4 ,
532+ wantReqs : 2 ,
553533 wantTotal : 4 ,
554534 },
555535 {
556536 name : "4 vds; 5 limit" ,
557537 iter : 2 ,
558538 limit : 5 ,
559- wantReqs : 4 ,
539+ wantReqs : 2 ,
560540 wantTotal : 4 ,
561541 },
562542 }
@@ -996,11 +976,6 @@ func TestExporter_makeReq_withCustomMonitoredResource(t *testing.T) {
996976 },
997977 },
998978 },
999- },
1000- },
1001- {
1002- Name : monitoring .MetricProjectPath ("proj-id" ),
1003- TimeSeries : []* monitoringpb.TimeSeries {
1004979 {
1005980 Metric : & metricpb.Metric {
1006981 Type : "custom.googleapis.com/opencensus/testview" ,
@@ -1074,11 +1049,6 @@ func TestExporter_makeReq_withCustomMonitoredResource(t *testing.T) {
10741049 },
10751050 },
10761051 },
1077- },
1078- },
1079- {
1080- Name : monitoring .MetricProjectPath ("proj-id" ),
1081- TimeSeries : []* monitoringpb.TimeSeries {
10821052 {
10831053 Metric : & metricpb.Metric {
10841054 Type : "custom.googleapis.com/opencensus/testview" ,
@@ -1154,11 +1124,6 @@ func TestExporter_makeReq_withCustomMonitoredResource(t *testing.T) {
11541124 },
11551125 },
11561126 },
1157- },
1158- },
1159- {
1160- Name : monitoring .MetricProjectPath ("proj-id" ),
1161- TimeSeries : []* monitoringpb.TimeSeries {
11621127 {
11631128 Metric : & metricpb.Metric {
11641129 Type : "custom.googleapis.com/opencensus/testview" ,
@@ -1232,11 +1197,6 @@ func TestExporter_makeReq_withCustomMonitoredResource(t *testing.T) {
12321197 },
12331198 },
12341199 },
1235- },
1236- },
1237- {
1238- Name : monitoring .MetricProjectPath ("proj-id" ),
1239- TimeSeries : []* monitoringpb.TimeSeries {
12401200 {
12411201 Metric : & metricpb.Metric {
12421202 Type : "custom.googleapis.com/opencensus/testview" ,
@@ -1303,11 +1263,6 @@ func TestExporter_makeReq_withCustomMonitoredResource(t *testing.T) {
13031263 },
13041264 },
13051265 },
1306- },
1307- },
1308- {
1309- Name : monitoring .MetricProjectPath ("proj-id" ),
1310- TimeSeries : []* monitoringpb.TimeSeries {
13111266 {
13121267 Metric : & metricpb.Metric {
13131268 Type : "custom.googleapis.com/opencensus/testview" ,
@@ -1414,7 +1369,7 @@ func TestExporter_customContext(t *testing.T) {
14141369 if ctx .Err () != context .DeadlineExceeded {
14151370 t .Errorf ("expected context to time out; got %v" , ctx .Err ())
14161371 }
1417- if timedOut != 3 {
1372+ if timedOut != 2 {
14181373 t .Errorf ("expected two functions to time out; got %d" , timedOut )
14191374 }
14201375}
0 commit comments