]> source.dussan.org Git - nextcloud-server.git/commitdiff
On Windows platform we have no stable etag generation - yet
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 27 Oct 2014 19:48:47 +0000 (20:48 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 27 Oct 2014 19:48:47 +0000 (20:48 +0100)
tests/lib/files/storage/local.php

index 8fd9f0648ade8e4e774007290d9f81b85087efb0..37462941d0c024274c8800e2bfcd4f7e113796a8 100644 (file)
@@ -38,6 +38,10 @@ class Local extends Storage {
        }
 
        public function testStableEtag() {
+               if (\OC_Util::runningOnWindows()) {
+                       $this->markTestSkipped('On Windows platform we have no stable etag generation - yet');
+               }
+
                $this->instance->file_put_contents('test.txt', 'foobar');
                $etag1 = $this->instance->getETag('test.txt');
                $etag2 = $this->instance->getETag('test.txt');
@@ -45,6 +49,10 @@ class Local extends Storage {
        }
 
        public function testEtagChange() {
+               if (\OC_Util::runningOnWindows()) {
+                       $this->markTestSkipped('On Windows platform we have no stable etag generation - yet');
+               }
+
                $this->instance->file_put_contents('test.txt', 'foo');
                $this->instance->touch('test.txt', time() - 2);
                $etag1 = $this->instance->getETag('test.txt');