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

Function cleanupTaskPluginControllerRuntime

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

Source from the content-addressed store, hash-verified

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

Calls 2

UnregisterMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected