]> git.ipfire.org Git - pbs.git/commitdiff
tests: Fix creating uploads
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 17:06:13 +0000 (17:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 17:06:13 +0000 (17:06 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/test.py

index 504e4aa03fd9a62115ffe285975145f157ee2e76..b681af3baaf62fa0f5106fda0ca1d9f761e5edeb 100644 (file)
@@ -203,9 +203,9 @@ class TestCase(unittest.IsolatedAsyncioTestCase):
                                if not buf:
                                        break
 
-                               upload.write(buf)
+                               await upload.write(buf)
 
                # Complete the upload
-               upload.completed()
+               await upload.completed()
 
                return upload