Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 1 | package rt_test |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 2 | |
| 3 | import ( |
| 4 | "fmt" |
| 5 | "os" |
Bogdan Caprita | 0a9f998 | 2014-06-11 15:50:08 -0700 | [diff] [blame] | 6 | "reflect" |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 7 | "strings" |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 8 | "testing" |
| 9 | |
Jiri Simsa | 519c507 | 2014-09-17 21:37:57 -0700 | [diff] [blame] | 10 | "veyron.io/veyron/veyron2" |
| 11 | "veyron.io/veyron/veyron2/ipc" |
| 12 | "veyron.io/veyron/veyron2/mgmt" |
| 13 | "veyron.io/veyron/veyron2/naming" |
| 14 | "veyron.io/veyron/veyron2/services/mgmt/appcycle" |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 15 | |
Jiri Simsa | 519c507 | 2014-09-17 21:37:57 -0700 | [diff] [blame] | 16 | _ "veyron.io/veyron/veyron/lib/testutil" |
| 17 | "veyron.io/veyron/veyron/lib/testutil/blackbox" |
| 18 | "veyron.io/veyron/veyron/lib/testutil/security" |
Cosmos Nicolaou | d6c3c9c | 2014-09-30 15:42:53 -0700 | [diff] [blame^] | 19 | "veyron.io/veyron/veyron/profiles" |
Jiri Simsa | 519c507 | 2014-09-17 21:37:57 -0700 | [diff] [blame] | 20 | "veyron.io/veyron/veyron/runtimes/google/rt" |
| 21 | vflag "veyron.io/veyron/veyron/security/flag" |
| 22 | "veyron.io/veyron/veyron/services/mgmt/node" |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 23 | ) |
| 24 | |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 25 | // TestBasic verifies that the basic plumbing works: LocalStop calls result in |
| 26 | // stop messages being sent on the channel passed to WaitForStop. |
| 27 | func TestBasic(t *testing.T) { |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 28 | m, _ := rt.New() |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 29 | ch := make(chan string, 1) |
| 30 | m.WaitForStop(ch) |
| 31 | for i := 0; i < 10; i++ { |
| 32 | m.Stop() |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 33 | if want, got := veyron2.LocalStop, <-ch; want != got { |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 34 | t.Errorf("WaitForStop want %q got %q", want, got) |
| 35 | } |
| 36 | select { |
| 37 | case s := <-ch: |
| 38 | t.Errorf("channel expected to be empty, got %q instead", s) |
| 39 | default: |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | // TestMultipleWaiters verifies that the plumbing works with more than one |
| 45 | // registered wait channel. |
| 46 | func TestMultipleWaiters(t *testing.T) { |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 47 | m, _ := rt.New() |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 48 | ch1 := make(chan string, 1) |
| 49 | m.WaitForStop(ch1) |
| 50 | ch2 := make(chan string, 1) |
| 51 | m.WaitForStop(ch2) |
| 52 | for i := 0; i < 10; i++ { |
| 53 | m.Stop() |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 54 | if want, got := veyron2.LocalStop, <-ch1; want != got { |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 55 | t.Errorf("WaitForStop want %q got %q", want, got) |
| 56 | } |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 57 | if want, got := veyron2.LocalStop, <-ch2; want != got { |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 58 | t.Errorf("WaitForStop want %q got %q", want, got) |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | // TestMultipleStops verifies that LocalStop does not block even if the wait |
| 64 | // channel is not being drained: once the channel's buffer fills up, future |
| 65 | // Stops become no-ops. |
| 66 | func TestMultipleStops(t *testing.T) { |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 67 | m, _ := rt.New() |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 68 | ch := make(chan string, 1) |
| 69 | m.WaitForStop(ch) |
| 70 | for i := 0; i < 10; i++ { |
| 71 | m.Stop() |
| 72 | } |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 73 | if want, got := veyron2.LocalStop, <-ch; want != got { |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 74 | t.Errorf("WaitForStop want %q got %q", want, got) |
| 75 | } |
| 76 | select { |
| 77 | case s := <-ch: |
| 78 | t.Errorf("channel expected to be empty, got %q instead", s) |
| 79 | default: |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | func init() { |
| 84 | blackbox.CommandTable["noWaiters"] = noWaiters |
| 85 | } |
| 86 | |
| 87 | func noWaiters([]string) { |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 88 | m, _ := rt.New() |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 89 | fmt.Println("ready") |
| 90 | blackbox.WaitForEOFOnStdin() |
| 91 | m.Stop() |
| 92 | os.Exit(42) // This should not be reached. |
| 93 | } |
| 94 | |
Bogdan Caprita | 1002ba4 | 2014-06-06 19:24:40 -0700 | [diff] [blame] | 95 | // TestNoWaiters verifies that the child process exits in the absence of any |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 96 | // wait channel being registered with its runtime. |
| 97 | func TestNoWaiters(t *testing.T) { |
| 98 | c := blackbox.HelperCommand(t, "noWaiters") |
| 99 | defer c.Cleanup() |
| 100 | c.Cmd.Start() |
| 101 | c.Expect("ready") |
| 102 | c.CloseStdin() |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 103 | c.ExpectEOFAndWaitForExitCode(fmt.Errorf("exit status %d", veyron2.UnhandledStopExitCode)) |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 104 | } |
| 105 | |
| 106 | func init() { |
| 107 | blackbox.CommandTable["forceStop"] = forceStop |
| 108 | } |
| 109 | |
| 110 | func forceStop([]string) { |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 111 | m, _ := rt.New() |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 112 | fmt.Println("ready") |
| 113 | blackbox.WaitForEOFOnStdin() |
| 114 | m.WaitForStop(make(chan string, 1)) |
| 115 | m.ForceStop() |
| 116 | os.Exit(42) // This should not be reached. |
| 117 | } |
| 118 | |
| 119 | // TestForceStop verifies that ForceStop causes the child process to exit |
| 120 | // immediately. |
| 121 | func TestForceStop(t *testing.T) { |
| 122 | c := blackbox.HelperCommand(t, "forceStop") |
| 123 | defer c.Cleanup() |
| 124 | c.Cmd.Start() |
| 125 | c.Expect("ready") |
| 126 | c.CloseStdin() |
Cosmos Nicolaou | b07fa77 | 2014-05-16 08:07:02 -0700 | [diff] [blame] | 127 | c.ExpectEOFAndWaitForExitCode(fmt.Errorf("exit status %d", veyron2.ForceStopExitCode)) |
Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 128 | } |
Bogdan Caprita | 0a9f998 | 2014-06-11 15:50:08 -0700 | [diff] [blame] | 129 | |
| 130 | func checkProgress(t *testing.T, ch <-chan veyron2.Task, progress, goal int) { |
| 131 | if want, got := (veyron2.Task{progress, goal}), <-ch; !reflect.DeepEqual(want, got) { |
| 132 | t.Errorf("Unexpected progress: want %+v, got %+v", want, got) |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | func checkNoProgress(t *testing.T, ch <-chan veyron2.Task) { |
| 137 | select { |
| 138 | case p := <-ch: |
| 139 | t.Errorf("channel expected to be empty, got %+v instead", p) |
| 140 | default: |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | // TestProgress verifies that the ticker update/track logic works for a single |
| 145 | // tracker. |
| 146 | func TestProgress(t *testing.T) { |
| 147 | m, _ := rt.New() |
| 148 | m.AdvanceGoal(50) |
| 149 | ch := make(chan veyron2.Task, 1) |
| 150 | m.TrackTask(ch) |
| 151 | checkNoProgress(t, ch) |
| 152 | m.AdvanceProgress(10) |
| 153 | checkProgress(t, ch, 10, 50) |
| 154 | checkNoProgress(t, ch) |
| 155 | m.AdvanceProgress(5) |
| 156 | checkProgress(t, ch, 15, 50) |
| 157 | m.AdvanceGoal(50) |
| 158 | checkProgress(t, ch, 15, 100) |
| 159 | m.AdvanceProgress(1) |
| 160 | checkProgress(t, ch, 16, 100) |
| 161 | m.AdvanceGoal(10) |
| 162 | checkProgress(t, ch, 16, 110) |
| 163 | m.AdvanceProgress(-13) |
| 164 | checkNoProgress(t, ch) |
| 165 | m.AdvanceGoal(0) |
| 166 | checkNoProgress(t, ch) |
Bogdan Caprita | 4258d88 | 2014-07-02 09:15:22 -0700 | [diff] [blame] | 167 | m.Cleanup() |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 168 | if _, ok := <-ch; ok { |
| 169 | t.Errorf("Expected channel to be closed") |
| 170 | } |
Bogdan Caprita | 0a9f998 | 2014-06-11 15:50:08 -0700 | [diff] [blame] | 171 | } |
| 172 | |
| 173 | // TestProgressMultipleTrackers verifies that the ticker update/track logic |
| 174 | // works for more than one tracker. It also ensures that the runtime doesn't |
| 175 | // block when the tracker channels are full. |
| 176 | func TestProgressMultipleTrackers(t *testing.T) { |
| 177 | m, _ := rt.New() |
| 178 | // ch1 is 1-buffered, ch2 is 2-buffered. |
| 179 | ch1, ch2 := make(chan veyron2.Task, 1), make(chan veyron2.Task, 2) |
| 180 | m.TrackTask(ch1) |
| 181 | m.TrackTask(ch2) |
| 182 | checkNoProgress(t, ch1) |
| 183 | checkNoProgress(t, ch2) |
| 184 | m.AdvanceProgress(1) |
| 185 | checkProgress(t, ch1, 1, 0) |
| 186 | checkNoProgress(t, ch1) |
| 187 | checkProgress(t, ch2, 1, 0) |
| 188 | checkNoProgress(t, ch2) |
| 189 | for i := 0; i < 10; i++ { |
| 190 | m.AdvanceProgress(1) |
| 191 | } |
| 192 | checkProgress(t, ch1, 2, 0) |
| 193 | checkNoProgress(t, ch1) |
| 194 | checkProgress(t, ch2, 2, 0) |
| 195 | checkProgress(t, ch2, 3, 0) |
| 196 | checkNoProgress(t, ch2) |
| 197 | m.AdvanceGoal(4) |
| 198 | checkProgress(t, ch1, 11, 4) |
| 199 | checkProgress(t, ch2, 11, 4) |
Bogdan Caprita | 4258d88 | 2014-07-02 09:15:22 -0700 | [diff] [blame] | 200 | m.Cleanup() |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 201 | if _, ok := <-ch1; ok { |
| 202 | t.Errorf("Expected channel to be closed") |
| 203 | } |
| 204 | if _, ok := <-ch2; ok { |
| 205 | t.Errorf("Expected channel to be closed") |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | func init() { |
| 210 | blackbox.CommandTable["app"] = app |
| 211 | } |
| 212 | |
| 213 | func app([]string) { |
| 214 | r, err := rt.New() |
| 215 | if err != nil { |
| 216 | fmt.Printf("Error creating runtime: %v\n", err) |
| 217 | return |
| 218 | } |
Bogdan Caprita | 4258d88 | 2014-07-02 09:15:22 -0700 | [diff] [blame] | 219 | defer r.Cleanup() |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 220 | ch := make(chan string, 1) |
| 221 | r.WaitForStop(ch) |
| 222 | fmt.Printf("Got %s\n", <-ch) |
| 223 | r.AdvanceGoal(10) |
| 224 | fmt.Println("Doing some work") |
| 225 | r.AdvanceProgress(2) |
| 226 | fmt.Println("Doing some more work") |
| 227 | r.AdvanceProgress(5) |
| 228 | } |
| 229 | |
| 230 | type configServer struct { |
| 231 | ch chan<- string |
| 232 | } |
| 233 | |
| 234 | func (c *configServer) Set(_ ipc.ServerContext, key, value string) error { |
| 235 | if key != mgmt.AppCycleManagerConfigKey { |
| 236 | return fmt.Errorf("Unexpected key: %v", key) |
| 237 | } |
| 238 | c.ch <- value |
| 239 | return nil |
| 240 | |
| 241 | } |
| 242 | |
Cosmos Nicolaou | 39a00e0 | 2014-08-14 11:04:14 -0700 | [diff] [blame] | 243 | func createConfigServer(t *testing.T, r veyron2.Runtime) (ipc.Server, string, <-chan string) { |
| 244 | server, err := r.NewServer() |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 245 | if err != nil { |
| 246 | t.Fatalf("Got error: %v", err) |
| 247 | } |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 248 | ch := make(chan string) |
Cosmos Nicolaou | fdc838b | 2014-06-30 21:44:27 -0700 | [diff] [blame] | 249 | |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 250 | var ep naming.Endpoint |
Cosmos Nicolaou | d6c3c9c | 2014-09-30 15:42:53 -0700 | [diff] [blame^] | 251 | if ep, err = server.ListenX(profiles.LocalListenSpec); err != nil { |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 252 | t.Fatalf("Got error: %v", err) |
| 253 | } |
Cosmos Nicolaou | 8bfacf2 | 2014-08-19 11:19:36 -0700 | [diff] [blame] | 254 | if err := server.Serve("", ipc.LeafDispatcher(node.NewServerConfig(&configServer{ch}), vflag.NewAuthorizerOrDie())); err != nil { |
Cosmos Nicolaou | fdc838b | 2014-06-30 21:44:27 -0700 | [diff] [blame] | 255 | t.Fatalf("Got error: %v", err) |
| 256 | } |
| 257 | return server, naming.JoinAddressName(ep.String(), ""), ch |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 258 | |
| 259 | } |
| 260 | |
Matt Rosencrantz | bf85d54 | 2014-08-22 13:31:14 -0700 | [diff] [blame] | 261 | func setupRemoteAppCycleMgr(t *testing.T) (veyron2.Runtime, *blackbox.Child, appcycle.AppCycle, func()) { |
Cosmos Nicolaou | 39a00e0 | 2014-08-14 11:04:14 -0700 | [diff] [blame] | 262 | // We need to use the public API since stubs are used below (and they |
| 263 | // refer to the global rt.R() function), but we take care to make sure |
| 264 | // that the "google" runtime we are trying to test in this package is |
| 265 | // the one being used. |
Matt Rosencrantz | bf85d54 | 2014-08-22 13:31:14 -0700 | [diff] [blame] | 266 | r, _ := rt.New(veyron2.RuntimeOpt{veyron2.GoogleRuntimeName}) |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 267 | c := blackbox.HelperCommand(t, "app") |
| 268 | id := r.Identity() |
Jiri Simsa | 73e9cac | 2014-06-30 09:55:10 -0700 | [diff] [blame] | 269 | idFile := security.SaveIdentityToFile(security.NewBlessedIdentity(id, "test")) |
Cosmos Nicolaou | 39a00e0 | 2014-08-14 11:04:14 -0700 | [diff] [blame] | 270 | configServer, configServiceName, ch := createConfigServer(t, r) |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 271 | c.Cmd.Env = append(c.Cmd.Env, fmt.Sprintf("VEYRON_IDENTITY=%v", idFile), |
| 272 | fmt.Sprintf("%v=%v", mgmt.ParentNodeManagerConfigKey, configServiceName)) |
| 273 | c.Cmd.Start() |
| 274 | appCycleName := <-ch |
| 275 | appCycle, err := appcycle.BindAppCycle(appCycleName) |
| 276 | if err != nil { |
| 277 | t.Fatalf("Got error: %v", err) |
| 278 | } |
Matt Rosencrantz | bf85d54 | 2014-08-22 13:31:14 -0700 | [diff] [blame] | 279 | return r, c, appCycle, func() { |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 280 | configServer.Stop() |
| 281 | c.Cleanup() |
| 282 | os.Remove(idFile) |
Bogdan Caprita | 4258d88 | 2014-07-02 09:15:22 -0700 | [diff] [blame] | 283 | // Don't do r.Cleanup() since the runtime needs to be used by |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 284 | // more than one test case. |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | // TestRemoteForceStop verifies that the child process exits when sending it |
| 289 | // a remote ForceStop rpc. |
| 290 | func TestRemoteForceStop(t *testing.T) { |
Matt Rosencrantz | bf85d54 | 2014-08-22 13:31:14 -0700 | [diff] [blame] | 291 | r, c, appCycle, cleanup := setupRemoteAppCycleMgr(t) |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 292 | defer cleanup() |
Cosmos Nicolaou | 39a00e0 | 2014-08-14 11:04:14 -0700 | [diff] [blame] | 293 | if err := appCycle.ForceStop(r.NewContext()); err == nil || !strings.Contains(err.Error(), "EOF") { |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 294 | t.Fatalf("Expected EOF error, got %v instead", err) |
| 295 | } |
| 296 | c.ExpectEOFAndWaitForExitCode(fmt.Errorf("exit status %d", veyron2.ForceStopExitCode)) |
| 297 | } |
| 298 | |
| 299 | // TestRemoteStop verifies that the child shuts down cleanly when sending it |
| 300 | // a remote Stop rpc. |
| 301 | func TestRemoteStop(t *testing.T) { |
Matt Rosencrantz | bf85d54 | 2014-08-22 13:31:14 -0700 | [diff] [blame] | 302 | r, c, appCycle, cleanup := setupRemoteAppCycleMgr(t) |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 303 | defer cleanup() |
Cosmos Nicolaou | 39a00e0 | 2014-08-14 11:04:14 -0700 | [diff] [blame] | 304 | stream, err := appCycle.Stop(r.NewContext()) |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 305 | if err != nil { |
| 306 | t.Fatalf("Got error: %v", err) |
| 307 | } |
Shyam Jayaraman | 97b9dca | 2014-07-31 13:30:46 -0700 | [diff] [blame] | 308 | rStream := stream.RecvStream() |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 309 | expectTask := func(progress, goal int32) { |
Shyam Jayaraman | 97b9dca | 2014-07-31 13:30:46 -0700 | [diff] [blame] | 310 | if !rStream.Advance() { |
| 311 | t.Fatalf("unexpected streaming error: %q", rStream.Err()) |
Shyam Jayaraman | c4aed6e | 2014-07-22 14:25:06 -0700 | [diff] [blame] | 312 | } |
Shyam Jayaraman | 97b9dca | 2014-07-31 13:30:46 -0700 | [diff] [blame] | 313 | task := rStream.Value() |
Shyam Jayaraman | c4aed6e | 2014-07-22 14:25:06 -0700 | [diff] [blame] | 314 | if task.Progress != progress || task.Goal != goal { |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 315 | t.Errorf("Got (%d, %d), want (%d, %d)", task.Progress, task.Goal, progress, goal) |
| 316 | } |
| 317 | } |
| 318 | expectTask(0, 10) |
| 319 | expectTask(2, 10) |
| 320 | expectTask(7, 10) |
Shyam Jayaraman | 97b9dca | 2014-07-31 13:30:46 -0700 | [diff] [blame] | 321 | if rStream.Advance() || rStream.Err() != nil { |
| 322 | t.Errorf("Expected EOF, got (%v, %v) instead", rStream.Value(), rStream.Err()) |
Bogdan Caprita | a4d9ee4 | 2014-06-20 16:42:53 -0700 | [diff] [blame] | 323 | } |
| 324 | if err := stream.Finish(); err != nil { |
| 325 | t.Errorf("Got error %v", err) |
| 326 | } |
| 327 | c.Expect(fmt.Sprintf("Got %s", veyron2.RemoteStop)) |
| 328 | c.Expect("Doing some work") |
| 329 | c.Expect("Doing some more work") |
| 330 | c.ExpectEOFAndWait() |
Bogdan Caprita | 0a9f998 | 2014-06-11 15:50:08 -0700 | [diff] [blame] | 331 | } |