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