(t *testing.T)
| 138 | } |
| 139 | |
| 140 | func TestThumbnailGenerateTimeout(t *testing.T) { |
| 141 | |
| 142 | if _, err := exec.LookPath("bash"); err != nil { |
| 143 | t.Skip("bash not in PATH.") |
| 144 | } |
| 145 | |
| 146 | store, ref := storageAndBlobRef(t) |
| 147 | service := NewService(sleepyThumbnailer{}, time.Duration(time.Millisecond), 5) |
| 148 | err := service.Generate(ref, io.Discard, store) |
| 149 | |
| 150 | if err != errTimeout { |
| 151 | t.Errorf("expected to timeout: %v", err) |
| 152 | } |
| 153 | } |
nothing calls this directly
no test coverage detected