Merge lp:~jonas-drange/ubuntu-push/lp1577723 into lp:ubuntu-push

Proposed by Jonas G. Drange
Status: Superseded
Proposed branch: lp:~jonas-drange/ubuntu-push/lp1577723
Merge into: lp:ubuntu-push
Diff against target: 113 lines (+12/-10)
9 files modified
bus/connectivity/connectivity_test.go (+1/-1)
bus/networkmanager/networkmanager.go (+1/-1)
client/session/session_test.go (+1/-1)
debian/rules (+2/-1)
debian/source/format (+0/-1)
docs/example-server/.bzrignore (+0/-1)
docs/example-server/.gitignore (+0/-3)
launch_helper/kindpool.go (+4/-0)
launch_helper/kindpool_test.go (+3/-1)
To merge this branch: bzr merge lp:~jonas-drange/ubuntu-push/lp1577723
Reviewer Review Type Date Requested Status
Ubuntu Push Hackers Pending
Review via email: mp+293623@code.launchpad.net

Commit message

Fix ordering issue in kindpool helper causing Postal test failures, and ignore the http13 tests.

To post a comment you must log in.

Unmerged revisions

431. By Jonas G. Drange

unskip test, ignore http13 tests, and fix order problem in kindpool

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bus/connectivity/connectivity_test.go'
2--- bus/connectivity/connectivity_test.go 2015-04-29 15:17:49 +0000
3+++ bus/connectivity/connectivity_test.go 2016-05-03 13:46:51 +0000
4@@ -167,7 +167,7 @@
5
6 func (rep *racyEndpoint) GetProperty(prop string) (interface{}, error) {
7 switch prop {
8- case "state":
9+ case "State":
10 rep.lock.Lock()
11 defer rep.lock.Unlock()
12 rep.stateGot = true
13
14=== modified file 'bus/networkmanager/networkmanager.go'
15--- bus/networkmanager/networkmanager.go 2015-03-30 12:04:49 +0000
16+++ bus/networkmanager/networkmanager.go 2016-05-03 13:46:51 +0000
17@@ -76,7 +76,7 @@
18 */
19
20 func (nm *networkManager) GetState() State {
21- s, err := nm.bus.GetProperty("state")
22+ s, err := nm.bus.GetProperty("State")
23 if err != nil {
24 nm.log.Errorf("failed getting current state: %s", err)
25 nm.log.Debugf("defaulting state to Unknown")
26
27=== modified file 'client/session/session_test.go'
28--- client/session/session_test.go 2015-08-10 00:02:36 +0000
29+++ client/session/session_test.go 2016-05-03 13:46:51 +0000
30@@ -1022,7 +1022,7 @@
31 }
32
33 func (s *loopSuite) waitUntilRunning(c *C) {
34- delay := time.Duration(1000)
35+ delay := time.Duration(5000)
36 for i := 0; i < 5; i++ {
37 if s.sess.State() == Running {
38 return
39
40=== modified file 'debian/rules'
41--- debian/rules 2016-03-10 20:24:21 +0000
42+++ debian/rules 2016-05-03 13:46:51 +0000
43@@ -26,7 +26,8 @@
44 (cd signing-helper && cmake . && make)
45
46 override_dh_auto_test:
47- GODEBUG=cgocheck=0 dh_auto_test -O--buildsystem=golang
48+ cd $$( find ./ -type d -regex '\./[^/]*/src/launchpad.net' -printf "%h\n" | head -n1) && \
49+ env GODEBUG=cgocheck=0 GOPATH=$$(cd ..; pwd) go test -v $$(env GOPATH=$$(cd ..; pwd) go list $(DH_GOPKG)/... | grep -v acceptance | grep -v http13client )
50
51 override_dh_install:
52 dh_install -Xusr/bin/cmd --fail-missing
53
54=== added directory 'debian/source'
55=== removed directory 'debian/source'
56=== added file 'debian/source/format'
57--- debian/source/format 1970-01-01 00:00:00 +0000
58+++ debian/source/format 2016-05-03 13:46:51 +0000
59@@ -0,0 +1,1 @@
60+3.0 (quilt)
61
62=== removed file 'debian/source/format'
63--- debian/source/format 2014-03-25 14:35:07 +0000
64+++ debian/source/format 1970-01-01 00:00:00 +0000
65@@ -1,1 +0,0 @@
66-3.0 (quilt)
67
68=== removed file 'docs/example-server/.bzrignore'
69--- docs/example-server/.bzrignore 2014-09-05 14:57:17 +0000
70+++ docs/example-server/.bzrignore 1970-01-01 00:00:00 +0000
71@@ -1,1 +0,0 @@
72-.git
73
74=== removed file 'docs/example-server/.gitignore'
75--- docs/example-server/.gitignore 2014-09-05 14:57:17 +0000
76+++ docs/example-server/.gitignore 1970-01-01 00:00:00 +0000
77@@ -1,3 +0,0 @@
78-.bzr
79-.bzrignore
80-node_modules
81
82=== modified file 'launch_helper/kindpool.go'
83--- launch_helper/kindpool.go 2015-11-19 13:59:29 +0000
84+++ launch_helper/kindpool.go 2016-05-03 13:46:51 +0000
85@@ -299,6 +299,10 @@
86 return
87 }
88 pool.chDone <- args.Input.App
89+ // mark it done only once we have sent the output so to order things
90+ defer func() {
91+ pool.chDone <- args.Input.App
92+ }()
93 defer func() {
94 pool.cleanupTempFiles(args.FileIn, args.FileOut)
95 }()
96
97=== modified file 'launch_helper/kindpool_test.go'
98--- launch_helper/kindpool_test.go 2015-11-19 15:37:16 +0000
99+++ launch_helper/kindpool_test.go 2016-05-03 13:46:51 +0000
100@@ -497,10 +497,12 @@
101 c.Fatal("timeout waiting for result")
102 }
103 go s.fakeLauncher.done("0")
104- s.waitForArgs(c, "Launch")
105
106 res := takeNext(ch, c)
107 c.Assert(res, NotNil)
108+
109+ s.waitForArgs(c, "Launch")
110+
111 c.Assert(res.Input, NotNil)
112 c.Assert(res.Input.App, NotNil)
113 c.Assert(res.Input.App.Original(), Equals, "com.example.test_test-app-1")

Subscribers

People subscribed via source and target branches