Skip to content

Commit 44c7334

Browse files
committed
fix tests
1 parent e72b755 commit 44c7334

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/resource/resource_plugin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Resource struct {
2929
messagePipe bus.MessagePipeInterface
3030
resourceService resourceServiceInterface
3131
agentConfig *config.Config
32-
agentConfigMutex sync.Mutex
32+
agentConfigMutex *sync.Mutex
3333
}
3434

3535
type errResponse struct {
@@ -48,7 +48,8 @@ var _ bus.Plugin = (*Resource)(nil)
4848

4949
func NewResource(agentConfig *config.Config) *Resource {
5050
return &Resource{
51-
agentConfig: agentConfig,
51+
agentConfig: agentConfig,
52+
agentConfigMutex: &sync.Mutex{},
5253
}
5354
}
5455

0 commit comments

Comments
 (0)