MCPcopy Create free account
hub / github.com/QuantumNous/new-api / cleanupTaskPluginControllerRuntime

Function cleanupTaskPluginControllerRuntime

controller/task_plugin_test.go:74–83  ·  view source on GitHub ↗
(t *testing.T, key string)

Source from the content-addressed store, hash-verified

72}
73
74func cleanupTaskPluginControllerRuntime(t *testing.T, key string) {
75 t.Helper()
76 t.Cleanup(func() {
77 jsplugin.DefaultRegistry.Unregister(key)
78 taskPluginSyncState.Lock()
79 delete(taskPluginSyncState.hashes, key)
80 delete(taskPluginSyncState.errors, key)
81 taskPluginSyncState.Unlock()
82 })
83}
84
85func TestDeleteThirdPartyPluginReportsAssociatedChannelsAndInFlightTasks(t *testing.T) {
86 setupTaskPluginControllerTest(t)

Calls 2

UnregisterMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected