(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestBuildSleepTimeout(t *testing.T) { |
| 50 | defer cleanup() |
| 51 | |
| 52 | c := &BuildCommand{ |
| 53 | Meta: testMetaSleepFile(t), |
| 54 | } |
| 55 | |
| 56 | args := []string{ |
| 57 | filepath.Join(testFixture("timeout"), "template.json"), |
| 58 | } |
| 59 | |
| 60 | defer cleanup() |
| 61 | |
| 62 | if code := c.Run(args); code == 0 { |
| 63 | fatalCommand(t, c.Meta) |
| 64 | } |
| 65 | |
| 66 | for _, f := range []string{"roses.txt", "fuchsias.txt", "lilas.txt"} { |
| 67 | if !fileExists(f) { |
| 68 | t.Errorf("Expected to find %s", f) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | for _, f := range []string{"campanules.txt"} { |
| 73 | if fileExists(f) { |
| 74 | t.Errorf("Expected to not find %s", f) |
| 75 | } |
| 76 | } |
| 77 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…