mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
test: updated test cases
This commit is contained in:
@@ -60,6 +60,9 @@ server:
|
||||
err = os.WriteFile(configPath, configContent, 0644)
|
||||
require.NoError(t, err, "Failed to write config file")
|
||||
|
||||
// Remove the environment variable before testing with config file
|
||||
os.Unsetenv("CRAWLAB_MONGO_HOST")
|
||||
|
||||
// Create a new Config instance with the config file
|
||||
cWithFile := Config{Name: configPath}
|
||||
err = cWithFile.Init()
|
||||
|
||||
Reference in New Issue
Block a user