Skip to content

Commit 577f4d6

Browse files
author
Xavier Grangier
committed
Revert "grangier#75 - build a complex test file for multithread process"
This reverts commit e571072.
1 parent 640db08 commit 577f4d6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

goose/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
limitations under the License.
2222
"""
2323
import os
24-
import time
25-
import random
2624
from goose.version import version_info, __version__
2725
from goose.configuration import Configuration
2826
from goose.crawler import CrawlCandidate
@@ -76,9 +74,7 @@ def initialize(self):
7674

7775
# test to write a dummy file to the directory
7876
# to check is directory is writtable
79-
timestamp = time.time()
80-
file_name = 'test-%s-%s.txt' % (timestamp, random.randrange(0, 100000))
81-
path = os.path.join(self.config.local_storage_path, file_name)
77+
path = os.path.join(self.config.local_storage_path, 'test.txt')
8278
try:
8379
f = open(path, 'w')
8480
f.close()

0 commit comments

Comments
 (0)