Skip to content

Instantly share code, notes, and snippets.

@stefanschneider
Created August 23, 2014 11:09
Show Gist options
  • Save stefanschneider/dee7d510986032d6dbf1 to your computer and use it in GitHub Desktop.
Save stefanschneider/dee7d510986032d6dbf1 to your computer and use it in GitHub Desktop.
stefan.schneider@W-STEFANS-2012R ~/gopath/src/github.com/pivotal-golang/cacheddownloader ((61ae551...))
$ ginkgo -r -noColor=true
Running Suite: CachedDownloader Suite
=====================================
Random Seed: 1408792139
Will run 52 of 52 specs
••••••••••••••••••••••••••••••••••••••
------------------------------
•! Panic [0.026 seconds]
File cache
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:433
When providing a file that should be cached
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:432
when the file is already on disk in the cache
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:330
if the file has been modified
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:287
should redownload the file [It]
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:272
Test Panicked
runtime error: invalid memory address or nil pointer dereference
c:/go/src/pkg/runtime/panic.c:552
Full Stack Trace
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:268 (0x44f935)
func.043: defer f.Close()
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_suite_test.go:12 (0x44899b)
TestCachedDownloader: RunSpecs(t, "CachedDownloader Suite")
------------------------------
• Failure [0.006 seconds]
File cache
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:433
When providing a file that should be cached
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:432
when the file is already on disk in the cache
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:330
if the file has been modified
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:287
should return a readcloser pointing to the file [It]
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:278
Expected error:
<*os.LinkError | 0xc0820d7500>: {
Op: "rename",
Old: "C:\\Users\\STEFAN~1.SCH\\AppData\\Local\\Temp\\test_file_uncached655399471\\181a5fd11733cf95e75eb028536d0594-227257913",
New: "C:\\Users\\STEFAN~1.SCH\\AppData\\Local\\Temp\\test_file_cached975311888\\181a5fd11733cf95e75eb028536d0594",
Err: 0xb7,
}
rename C:\Users\STEFAN~1.SCH\AppData\Local\Temp\test_file_uncached655399471\181a5fd11733cf95e75eb028536d0594-227257913 C:\Users\STEFAN~1.S
CH\AppData\Local\Temp\test_file_cached975311888\181a5fd11733cf95e75eb028536d0594: Cannot create a file when that file already exists.
not to have occurred
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:276
------------------------------
•! Panic [0.006 seconds]
File cache
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:433
When providing a file that should be cached
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:432
when the file is already on disk in the cache
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:330
if the file has been modified
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:287
should have put the file in the cache [It]
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:286
Test Panicked
runtime error: invalid memory address or nil pointer dereference
c:/go/src/pkg/runtime/panic.c:552
Full Stack Trace
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:282 (0x44fe54)
func.045: f.Close()
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_suite_test.go:12 (0x44899b)
TestCachedDownloader: RunSpecs(t, "CachedDownloader Suite")
------------------------------
•••••••••
------------------------------
• Failure [0.008 seconds]
File cache
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:433
When providing a file that should be cached
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:432
when the cache is full
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:431
deletes the oldest cached files until there is space [It]
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:430
Expected error:
<*os.LinkError | 0xc0820d7f80>: {
Op: "rename",
Old: "C:\\Users\\STEFAN~1.SCH\\AppData\\Local\\Temp\\test_file_uncached126131018\\0d61f8370cad1d412f80b84d143e1257-502888990",
New: "C:\\Users\\STEFAN~1.SCH\\AppData\\Local\\Temp\\test_file_cached506634711\\0d61f8370cad1d412f80b84d143e1257",
Err: 0xb7,
}
rename C:\Users\STEFAN~1.SCH\AppData\Local\Temp\test_file_uncached126131018\0d61f8370cad1d412f80b84d143e1257-502888990 C:\Users\STEFAN~1.SCH
\AppData\Local\Temp\test_file_cached506634711\0d61f8370cad1d412f80b84d143e1257: Cannot create a file when that file already exists.
not to have occurred
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:399
------------------------------
• Failure [2.035 seconds]
Integration
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/integration_test.go:111
Cached Downloader
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/integration_test.go:110
caches downloads [It]
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/integration_test.go:109
Expected error:
<*os.LinkError | 0xc0821c7180>: {
Op: "rename",
Old: "C:\\Users\\STEFAN~1.SCH\\AppData\\Local\\Temp\\cached_downloader_integration_uncached088824415\\181a5fd11733cf95e75eb028536d0594-387
035700",
New: "C:\\Users\\STEFAN~1.SCH\\AppData\\Local\\Temp\\cached_downloader_integration_cache963148032\\181a5fd11733cf95e75eb028536d0594",
Err: 0xb7,
}
rename C:\Users\STEFAN~1.SCH\AppData\Local\Temp\cached_downloader_integration_uncached088824415\181a5fd11733cf95e75eb028536d0594-387035700 C:\
Users\STEFAN~1.SCH\AppData\Local\Temp\cached_downloader_integration_cache963148032\181a5fd11733cf95e75eb028536d0594: Cannot create a file when that fi
le already exists.
not to have occurred
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/integration_test.go:61
------------------------------
Summarizing 5 Failures:
[Panic!] File cache When providing a file that should be cached when the file is already on disk in the cache if the file has been modified [It] shoul
d redownload the file
c:/go/src/pkg/runtime/panic.c:552
[Fail] File cache When providing a file that should be cached when the file is already on disk in the cache if the file has been modified [It] should
return a readcloser pointing to the file
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:276
[Panic!] File cache When providing a file that should be cached when the file is already on disk in the cache if the file has been modified [It] shoul
d have put the file in the cache
c:/go/src/pkg/runtime/panic.c:552
[Fail] File cache When providing a file that should be cached when the cache is full [It] deletes the oldest cached files until there is space
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/cached_downloader_test.go:399
[Fail] Integration Cached Downloader [It] caches downloads
C:/Users/stefan.schneider/gopath/src/github.com/pivotal-golang/cacheddownloader/integration_test.go:61
Ran 52 of 52 Specs in 5.978 seconds
FAIL! -- 47 Passed | 5 Failed | 0 Pending | 0 Skipped --- FAIL: TestCachedDownloader (6.02 seconds)
FAIL
Ginkgo ran 1 suite in 7.1741434s
Test Suite Failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment