[WIP] Fix minor bugs

This commit is contained in:
Vladimir Stoilov
2024-10-08 09:47:29 +03:00
parent a79be8b6a9
commit a8517cd65f
6 changed files with 21 additions and 17 deletions

View File

@@ -24,7 +24,7 @@ type testInstance struct {
geoip *geoip.GeoIP
}
func (stub *testInstance) Updates() *updates.Updates {
func (stub *testInstance) IntelUpdates() *updates.Updates {
return stub.updates
}
@@ -78,7 +78,7 @@ func runTest(m *testing.M) error {
if err != nil {
return fmt.Errorf("failed to create config: %w", err)
}
stub.updates, err = updates.New(stub)
stub.updates, err = updates.New(stub, "Intel Test", updates.UpdateIndex{})
if err != nil {
return fmt.Errorf("failed to create updates: %w", err)
}