(self)
| 223 | ) |
| 224 | |
| 225 | def test_threaded_reads(self): |
| 226 | self.fs.upload_from_stream("test", b"hello") |
| 227 | |
| 228 | threads = [] |
| 229 | results: list = [] |
| 230 | for i in range(10): |
| 231 | threads.append(JustRead(self.fs, 10, results)) |
| 232 | threads[i].start() |
| 233 | |
| 234 | joinall(threads) |
| 235 | |
| 236 | self.assertEqual(100 * [b"hello"], results) |
| 237 | |
| 238 | def test_threaded_writes(self): |
| 239 | threads = [] |
nothing calls this directly
no test coverage detected