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

Function cleanupTaskPluginControllerRuntime

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

Source from the content-addressed store, hash-verified

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

Calls 2

UnregisterMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected