def test_query_that_times_out(self):
    files = []
    for i in range(100000):
      files.append(i % "f/x%i.txt")
    shard_manager = FakeDBShardManager(files)
    query_cache = QueryCache()
    q = MockQuery("x/")
    q._dir_search_timeout = 0.00001
    res = q.execute(shard_manager, query_cache)
    self.assertTrue(res.truncated)
dataset/ETHPy150Open natduca/quickopen/src/query_test.py/QueryTest.test_query_that_times_out/swapped operands of `%`