Skip to content

Commit 9762276

Browse files
committed
resolve conflicts
1 parent 5f87ce3 commit 9762276

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/google-cloud-storage/tests/perf/microbenchmarks/time_based/reads

packages/google-cloud-storage/tests/perf/microbenchmarks/time_based/reads/test_reads.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
import os
2020
import random
2121
import time
22-
from io import BytesIO
2322
from typing import List, NamedTuple, Optional
24-
2523
import pytest
2624

2725
import tests.perf.microbenchmarks.time_based.reads.config as config
@@ -182,7 +180,9 @@ def __init__(self):
182180

183181
def write(self, data):
184182
self.chunks.append(data)
185-
self.size += len(data)
183+
nbytes = len(data)
184+
self.size += nbytes
185+
return nbytes
186186

187187
def getvalue(self):
188188
return b"".join(self.chunks)

0 commit comments

Comments
 (0)