mirror of https://github.com/status-im/consul.git
Merge pull request #9068 from hashicorp/restore-test-signature
restore prior signature of test helper so enterprise compiles
This commit is contained in:
commit
e14a9a725e
|
@ -14,8 +14,8 @@ import (
|
|||
"github.com/hashicorp/consul/sdk/testutil"
|
||||
)
|
||||
|
||||
func newStateStore() *state.Store {
|
||||
return state.NewStateStore(nil)
|
||||
func newStateStore() (*state.Store, error) {
|
||||
return state.NewStateStore(nil), nil
|
||||
}
|
||||
|
||||
func TestUsageReporter_emitServiceUsage_OSS(t *testing.T) {
|
||||
|
|
|
@ -62,7 +62,8 @@ func TestUsageReporter_Run_Nodes(t *testing.T) {
|
|||
metrics.NewGlobal(cfg, sink)
|
||||
|
||||
mockStateProvider := &mockStateProvider{}
|
||||
s := newStateStore()
|
||||
s, err := newStateStore()
|
||||
require.NoError(t, err)
|
||||
if tcase.modfiyStateStore != nil {
|
||||
tcase.modfiyStateStore(t, s)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue