Skip to content

Commit

Permalink
Feat/admin api (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Sep 4, 2022
1 parent 232af09 commit 1106048
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/config/file/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package file

import (
"reflect"
"sync"
"testing"
)

Expand Down Expand Up @@ -299,7 +300,13 @@ func Test_storeOperate_Save(t *testing.T) {
args args
wantErr bool
}{
{"Save", fields{}, args{}, false},
{"Save", fields{
receivers: &receiverBucket{
lock: sync.RWMutex{},
receivers: map[config.PathKey][]chan<- []byte{},
},
contents: map[config.PathKey]string{},
}, args{}, false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 1106048

Please sign in to comment.