Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: mojo/go/tests/regression_test.go

Issue 1861153002: Go system tests: Close proxy and stub at the end of a test. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package tests 5 package tests
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "sync" 9 "sync"
10 "testing" 10 "testing"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 }() 44 }()
45 if err := proxy.WithoutParameterAndEmptyResponse(); err != nil { 45 if err := proxy.WithoutParameterAndEmptyResponse(); err != nil {
46 t.Fatalf("error sending request: %v", err) 46 t.Fatalf("error sending request: %v", err)
47 } 47 }
48 v.mu.Lock() 48 v.mu.Lock()
49 if !v.methodCalled { 49 if !v.methodCalled {
50 t.Fatal("proxy returned from the call before the stub se nt the response") 50 t.Fatal("proxy returned from the call before the stub se nt the response")
51 } 51 }
52 v.mu.Unlock() 52 v.mu.Unlock()
53 proxy.Close_Proxy()
54 stub.Close()
53 } 55 }
54 } 56 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698