func agentRpcTestRestore(t *testing.T, client tmclient.TabletManagerClient, ti *topo.TabletInfo) { logChannel, errFunc, err := client.Restore(ti, testRestoreArgs, time.Minute) if err != nil { t.Fatalf("Restore failed: %v", err) } compareLoggedStuff(t, "Restore", logChannel, 10) err = errFunc() compareError(t, "Restore", err, true, testRestoreCalled) }