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

Function TestAcquireJob_LongPoll

coderd/provisionerdserver/provisionerdserver_test.go:253–260  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

251}
252
253func TestAcquireJob_LongPoll(t *testing.T) {
254 t.Parallel()
255 //nolint:dogsled
256 srv, _, _, _ := setup(t, false, &overrides{acquireJobLongPollDuration: time.Microsecond})
257 job, err := srv.AcquireJob(context.Background(), nil)
258 require.NoError(t, err)
259 require.Equal(t, &proto.AcquiredJob{}, job)
260}
261
262func TestAcquireJobWithCancel_Cancel(t *testing.T) {
263 t.Parallel()

Callers

nothing calls this directly

Calls 3

setupFunction · 0.70
AcquireJobMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected