func agentRpcTestSnapshot(t *testing.T, client tmclient.TabletManagerClient, ti *topo.TabletInfo) { logChannel, errFunc, err := client.Snapshot(ti, testSnapshotArgs, time.Minute) if err != nil { t.Fatalf("Snapshot failed: %v", err) } compareLoggedStuff(t, "Snapshot", logChannel, 0) sr, err := errFunc() compareError(t, "Snapshot", err, sr, testSnapshotReply) }