(t *testing.T, key string)
| 70 | } |
| 71 | |
| 72 | func 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 | |
| 83 | func TestDeleteThirdPartyPluginReportsAssociatedChannelsAndInFlightTasks(t *testing.T) { |
| 84 | setupTaskPluginControllerTest(t) |
no test coverage detected