We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f87ce3 commit 9762276Copy full SHA for 9762276
1 file changed
packages/google-cloud-storage/tests/perf/microbenchmarks/time_based/reads/test_reads.py
@@ -19,9 +19,7 @@
19
import os
20
import random
21
import time
22
-from io import BytesIO
23
from typing import List, NamedTuple, Optional
24
-
25
import pytest
26
27
import tests.perf.microbenchmarks.time_based.reads.config as config
@@ -182,7 +180,9 @@ def __init__(self):
182
180
183
181
def write(self, data):
184
self.chunks.append(data)
185
- self.size += len(data)
+ nbytes = len(data)
+ self.size += nbytes
+ return nbytes
186
187
def getvalue(self):
188
return b"".join(self.chunks)
0 commit comments