MCPcopy
hub / github.com/lxc/incus / TestTask_ExecuteImmediately

Function TestTask_ExecuteImmediately

internal/server/task/task_test.go:15–19  ·  view source on GitHub ↗

The given task is executed immediately by the scheduler.

(t *testing.T)

Source from the content-addressed store, hash-verified

13
14// The given task is executed immediately by the scheduler.
15func TestTask_ExecuteImmediately(t *testing.T) {
16 f, wait := newFunc(t, 1)
17 defer startTask(t, f, task.Every(time.Second))() //nolint:revive
18 wait(100 * time.Millisecond)
19}
20
21// The given task is executed again after the specified time interval has
22// elapsed.

Callers

nothing calls this directly

Calls 3

EveryFunction · 0.92
newFuncFunction · 0.85
startTaskFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…