(t *testing.T)
| 102 | } |
| 103 | |
| 104 | func TestDetectorNoJobs(t *testing.T) { |
| 105 | t.Parallel() |
| 106 | |
| 107 | ctx := testutil.Context(t, testutil.WaitLong) |
| 108 | env := newDetectorTestEnv(ctx, t) |
| 109 | defer env.close() |
| 110 | |
| 111 | stats := env.tick(ctx, time.Now()) |
| 112 | require.NoError(t, stats.Error) |
| 113 | require.Empty(t, stats.TerminatedJobIDs) |
| 114 | } |
| 115 | |
| 116 | func TestDetectorNoHungJobs(t *testing.T) { |
| 117 | t.Parallel() |
nothing calls this directly
no test coverage detected