Skip to content

Commit

Permalink
fix: unit tests, linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
olli-holmala committed Jun 11, 2024
1 parent 99d23e7 commit af4811b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/collector/factories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestOTelComponentFactories(t *testing.T) {

assert.Len(t, factories.Receivers, 19)
assert.Len(t, factories.Processors, 20)
assert.Len(t, factories.Exporters, 3)
assert.Len(t, factories.Exporters, 4)
assert.Len(t, factories.Extensions, 15)
assert.Len(t, factories.Connectors, 7)
}
2 changes: 1 addition & 1 deletion internal/collector/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestConfigProviderSettings(t *testing.T) {
assert.Len(t, settings.ResolverSettings.ProviderFactories, 5, "There should be 5 provider factories")
assert.Len(t, settings.ResolverSettings.ConverterFactories, 1, "There should be 1 converter factory")
assert.NotEmpty(t, settings.ResolverSettings.URIs, "URIs should not be empty")
assert.Equal(t, "/var/etc/nginx-agent/nginx-agent-otelcol.yaml", settings.ResolverSettings.URIs[0],
assert.Equal(t, "/etc/nginx-agent/nginx-agent-otelcol.yaml", settings.ResolverSettings.URIs[0],
"Default URI should match")
}

Expand Down
1 change: 0 additions & 1 deletion internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ func TestResolveCollector(t *testing.T) {
assert.Equal(t, test.expected, actual)
}
})

}
}

Expand Down

0 comments on commit af4811b

Please sign in to comment.