You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix CreateJfrogHomeConfig to work without testing.T context
The previous commit called CreateJfrogHomeConfig(nil, '', true) from
setupIntegrationTests(), which runs in TestMain without a testing.T context.
This caused all assert.NoError() calls to silently fail, so config creation
errors were ignored and the config was never actually created!
Solution:
- Created createDefaultServerConfig() helper that handles errors manually
- Uses os.Exit(1) on errors instead of assert.NoError()
- Properly creates the default server config before any tests run
- Added required imports: path/filepath, commonCommands, clientUtils
This ensures binary scan tests have a valid config to use.
0 commit comments