66 "testing"
77
88 "github.com/codeGROOVE-dev/slacker/pkg/bot/cache"
9- "github.com/codeGROOVE-dev/slacker/pkg/config"
109 "github.com/slack-go/slack"
1110)
1211
@@ -26,7 +25,7 @@ func TestNew(t *testing.T) {
2625 token : "test-token" ,
2726 }
2827
29- configMgr := config . New ()
28+ configMgr := NewMockConfig (). Build ()
3029 stateStore := & mockStateStore {
3130 processedEvents : make (map [string ]bool ),
3231 }
@@ -99,7 +98,7 @@ func TestNew_WorkspaceInfoFailure(t *testing.T) {
9998 token : "test-token" ,
10099 }
101100
102- configMgr := config . New ()
101+ configMgr := NewMockConfig (). Build ()
103102 stateStore := & mockStateStore {
104103 processedEvents : make (map [string ]bool ),
105104 }
@@ -144,7 +143,7 @@ func TestNew_WithGitHubClient(t *testing.T) {
144143 client : fakeGHClient ,
145144 }
146145
147- configMgr := config . New ()
146+ configMgr := NewMockConfig (). Build ()
148147 stateStore := & mockStateStore {
149148 processedEvents : make (map [string ]bool ),
150149 }
@@ -169,7 +168,7 @@ func TestNew_WithGitHubClient(t *testing.T) {
169168
170169func TestSaveThread (t * testing.T ) {
171170 mockSlack := & mockSlackClient {}
172- configMgr := config . New ()
171+ configMgr := NewMockConfig (). Build ()
173172
174173 mockState := & mockStateStore {
175174 processedEvents : make (map [string ]bool ),
@@ -222,7 +221,7 @@ func TestSaveThread(t *testing.T) {
222221
223222func TestSaveThread_PersistenceError (t * testing.T ) {
224223 mockSlack := & mockSlackClient {}
225- configMgr := config . New ()
224+ configMgr := NewMockConfig (). Build ()
226225
227226 mockState := & mockStateStore {
228227 processedEvents : make (map [string ]bool ),
0 commit comments