Skip to content

Look into unstable tests #22305

@MorrisJobke

Description

@MorrisJobke

Those tests fail from time to time:

#23437 & #23567 & #23626 & #23729 & #23752 & #23204:

1) OCA\Files_Sharing\Tests\EtagPropagationTest::testReshareRecipientWritesToReshare
Error: Call to a member function getMountPoint() on null

/drone/src/lib/private/Share20/Manager.php:304
/drone/src/lib/private/Share20/Manager.php:705
/drone/src/apps/files_sharing/tests/EtagPropagationTest.php:94
/drone/src/apps/files_sharing/tests/PropagationTestCase.php:42
1) OCA\Files_Versions\Tests\VersioningTest::testRestoreMovedShare
File content has not changed
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'version 2'
+'version 1'

/drone/src/apps/files_versions/tests/VersioningTest.php:729

1) OCA\FederatedFileSharing\Tests\FederatedShareProviderTest::testGetSharedBy
OCP\Share\Exceptions\ShareNotFound: There was an error retrieving the share. Maybe the link is wrong, it was unshared, or it was deleted.

/drone/src/apps/federatedfilesharing/lib/FederatedShareProvider.php:863
/drone/src/apps/federatedfilesharing/lib/FederatedShareProvider.php:242
/drone/src/apps/federatedfilesharing/tests/FederatedShareProviderTest.php:524

1) Test\Files\ObjectStore\ObjectStoreStorageTest::testCopyOverwrite with data set #5 ('/sòurcē.txt', '/target.txt')
Expected /target.txt to be a copy of /drone/src/tests/data/lorem.txt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n
-Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n
-Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n
-Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+''

/drone/src/tests/lib/Files/Storage/Storage.php:222
/drone/src/tests/lib/Files/Storage/Storage.php:263

1) OCA\DAV\Tests\unit\CardDAV\CardDavBackendTest::testSearch with data set "check if duplicates are handled correctly" ('John', array('FN', 'CLOUD'), array(), array(array('uri0', 'John Doe'), array('uri1', 'John M. Doe')))
108	Failed asserting that 1 is identical to 2.
109	
110	/drone/src/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php:746

OCA\FederatedFileSharing\Tests\FederatedShareProviderTest::testGetSharedByWithLimit
98	OCP\Share\Exceptions\ShareNotFound: There was an error retrieving the share. Maybe the link is wrong, it was unshared, or it was deleted.
99	
100	/drone/src/apps/federatedfilesharing/lib/FederatedShareProvider.php:865
101	/drone/src/apps/federatedfilesharing/lib/FederatedShareProvider.php:244
102	/drone/src/apps/federatedfilesharing/tests/FederatedShareProviderTest.php:655

We should make them more reliable to avoid false positives.

cc @nickvergessen @kesselb @ChristophWurst @rullzer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions