Fix name of mock function
This commit is contained in:
parent
a29820ebe3
commit
647ba727f1
1 changed files with 2 additions and 2 deletions
|
|
@ -416,12 +416,12 @@ func TestRebuild(t *testing.T) {
|
|||
|
||||
for _, tt := range tests {
|
||||
requestCount := 0
|
||||
getSharedServers := func(conn *jsonrpc2.Conn, req *jsonrpc2.Request) (interface{}, error) {
|
||||
rebuildContainer := func(conn *jsonrpc2.Conn, req *jsonrpc2.Request) (interface{}, error) {
|
||||
requestCount++
|
||||
return true, nil
|
||||
}
|
||||
testServer, session, err := makeMockSession(
|
||||
livesharetest.WithService(tt.rpcService, getSharedServers),
|
||||
livesharetest.WithService(tt.rpcService, rebuildContainer),
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatalf("creating mock session: %v", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue