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

Function cleanupTaskPluginControllerRuntime

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

Source from the content-addressed store, hash-verified

60}
61
62func cleanupTaskPluginControllerRuntime(t *testing.T, key string) {
63 t.Helper()
64 t.Cleanup(func() {
65 jsplugin.DefaultRegistry.Unregister(key)
66 taskPluginSyncState.Lock()
67 delete(taskPluginSyncState.hashes, key)
68 delete(taskPluginSyncState.errors, key)
69 taskPluginSyncState.Unlock()
70 })
71}
72
73func TestDeleteThirdPartyPluginReportsAssociatedChannelsAndInFlightTasks(t *testing.T) {
74 setupTaskPluginControllerTest(t)

Calls 2

UnregisterMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected