Skip to content

Commit 82d555b

Browse files
committed
tests: add debug logs
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 4411763 commit 82d555b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ClassifierTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,11 @@ public function testFileListener(string $ignoreFileName) : void {
154154
$storageId = $this->testFile->getMountPoint()->getNumericStorageId();
155155
$rootId = $this->testFile->getMountPoint()->getStorageRootId();
156156

157+
var_dump([ 'testFile' => $this->testFile->getId(), 'ignoredFile' => $this->ignoredFile->getId() ]);
158+
157159
$this->runFsActionJobs();
158-
self::assertCount(1, $this->queue->getFromQueue(ImagenetClassifier::MODEL_NAME, $storageId, $rootId, 100), 'one element should have been added to imagenet queue');
160+
$queue = $this->queue->getFromQueue(ImagenetClassifier::MODEL_NAME, $storageId, $rootId, 100);
161+
self::assertCount(1, $this->queue->getFromQueue(ImagenetClassifier::MODEL_NAME, $storageId, $rootId, 100), 'one element should have been added to imagenet queue: ' . var_export($queue, true) . var_export(array_map(fn(QueueFile $queueFile) => $this->rootFolder->getFirstNodeById($queueFile->getFileId())?->getPath(), $queue), true));
159162

160163
$this->testFile->delete();
161164

0 commit comments

Comments
 (0)