MCPcopy Create free account
hub / github.com/SurgeDM/Surge / newLifecycleManagerForTest

Function newLifecycleManagerForTest

internal/processing/manager_test.go:38–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func newLifecycleManagerForTest() *LifecycleManager {
39 settings := config.DefaultSettings()
40 settings.Categories.CategoryEnabled.Value = false
41 sem := make(chan struct{}, maxConcurrentProbes)
42 for i := 0; i < maxConcurrentProbes; i++ {
43 sem <- struct{}{}
44 }
45 return &LifecycleManager{
46 settings: settings,
47 settingsRefreshedAt: time.Now(),
48 probeSem: sem,
49 }
50}
51
52func TestLifecycleManager_Enqueue_PrecreatesWorkingFileBeforeDispatch(t *testing.T) {
53 server := newProbeTestServer(t, 1234)

Calls 1

DefaultSettingsFunction · 0.92

Tested by

no test coverage detected