(t *testing.T, key string)
| 72 | } |
| 73 | |
| 74 | func 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 | |
| 85 | func TestDeleteThirdPartyPluginReportsAssociatedChannelsAndInFlightTasks(t *testing.T) { |
| 86 | setupTaskPluginControllerTest(t) |
no test coverage detected