MCPcopy Index your code
hub / github.com/coder/coder / TestDetectorNoJobs

Function TestDetectorNoJobs

coderd/jobreaper/detector_test.go:104–114  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

102}
103
104func 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
116func TestDetectorNoHungJobs(t *testing.T) {
117 t.Parallel()

Callers

nothing calls this directly

Calls 5

ContextFunction · 0.92
newDetectorTestEnvFunction · 0.85
closeMethod · 0.65
tickMethod · 0.45
EmptyMethod · 0.45

Tested by

no test coverage detected