• Steve Azzopardi's avatar
    Add function to cleanup hooks for test · b6f0a0e9
    Steve Azzopardi authored
    When we use test.NewGlobal inside of our tests, we are adding a hook but
    never cleaning it up, this means that we are leaking memory for tests.
    Create a new function `NewHook` that should be used for all our tests,
    which returns a cleanup function that should be called at the end of the
    test so the hook is clean up.
    b6f0a0e9
Name
Last commit
Last update
..
test Loading commit data...
configuration.go Loading commit data...
configuration_test.go Loading commit data...
dump_unix.go Loading commit data...
dump_unix_test.go Loading commit data...
dump_windows.go Loading commit data...
mock_systemLogger.go Loading commit data...
mock_systemService.go Loading commit data...
runner_formatter.go Loading commit data...
runner_formatter_test.go Loading commit data...
secrets_cleanup.go Loading commit data...
secrets_cleanup_test.go Loading commit data...
system_logger.go Loading commit data...
system_logger_test.go Loading commit data...